CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2009
    Posts
    8

    Question load xml from web MFC

    how can i load xml from web ?? for examlple www.myweb.com/myxml.xml cam any1 help me or show example?? i'm using microsoft visual studio
    Last edited by lasha; February 5th, 2011 at 07:31 PM.

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: load xml from web MFC

    You can download the xml file with UrlDownloadToFile. For parsing the file there are many options. One of them is Xerces. Google for more options on parsing the file.

  3. #3
    Join Date
    Jun 2009
    Location
    oklahoma
    Posts
    199

    Re: load xml from web MFC

    tinyxml is another option

  4. #4
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: load xml from web MFC

    To download an XML file (as well as HTML, TXT, etc) it's easy by using MFC classes CInternetSession and CStdioFile.
    A sample code can be found here.

    For parsing, easy to use and available with Visual Studio is XmlLite library.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured