load xml from web MFC
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: load xml from web MFC

Hybrid View

  1. #1
    Join Date
    Jun 2009

    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
    Holland (land of the dope)

    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

    Re: load xml from web MFC

    tinyxml is another option

  4. #4
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Iasi - Romania

    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 Cucu
    "When in Rome, do as Romans do."
    My latest articles: http://codexpert.ro/blog/author/ovidiu-cucu/

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!

HTML5 Development Center