MapInfo Pro Developers User Group

 View Only
  • 1.  MSDN Library ??

    Posted 14 days ago
    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 13 days ago
      |   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 10 days ago
    Thank you very much Bill. This is perfect.
    Regards,
    Sergi

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