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
    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 06: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
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,023

    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."
    Visit: Microsoft Virtual Academy
    Follow: https://twitter.com/#!/ovidiucucu
    My blog: 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 survey question.


Featured


HTML5 Development Center