MapInfo Pro Developers User Group

 View Only
  • 1.  MSDN Library ??

    Posted 07-26-2022 14:20
    I am learning HTTP and XML functions from MapBasic Reference. There are some "For more information, refer to Microsoft MSDN library" sentences related to some topics, and other Uexplicit URL are no longer valid. I have tried to read those functions from Microsoft Docs but that is a labyrinth for me.
    Where may I learn about MI HTTP-FTP and MIXML functions.
    There is also one sample application (YahooTrafficInfo.MBX) in MAPBASIC directories but it doesn't run, at least on my computer; an error message appears "Wrong ContentType: text/html; charset=UTF-8", then application crashes.
    I'm stuck at this point. Any help?
    Thank you


    ------------------------------
    Sergi Gamiz-Ribelles
    Knowledge Community Shared Account
    ------------------------------


  • 2.  RE: MSDN Library ??

    Employee
    Posted 07-27-2022 10:20
      |   view attached
    The MapBasic XML functions and subs are simply wrappers to call the Micorsoft XML methods documented here:
    XML DOM Objects-Interfaces | Microsoft Docs
    YahooTrafficInfo sample code has not been updated in many years, it's just provided as sample code, but Yahoo has changed their site dramatically since this app was created so it won't work with it anymore.  Not likely to be updated.
    I attached an MB script of the XML functions used with a simple XML file so you can see how they are used in working with these files.
    Regards,
    -Bill

    ------------------------------
    Bill Wemple
    Principal Software Engineer, Quality Management
    Precisely, Inc
    precisely.com
    ------------------------------

    Attachment(s)

    zip
    XMLTest.zip   2 KB 1 version


  • 3.  RE: MSDN Library ??

    Posted 07-30-2022 10:02
    Thank you very much Bill. This is perfect.
    Regards,
    Sergi

    ------------------------------
    Sergi Gamiz-Ribelles
    Knowledge Community Shared Account
    ------------------------------