MFC: Easy way to download XML & HTML files to disk?
-
Hey folks, I'm using C++ & MFC (no .NET). I need to accomplish the following, and I really don't know how to go about any of it. If you know of links/ways to do it 1) Go grab an XML file on the server, and download it, saving it to disk (if necessary) or justu loading it into memory. 2) Parse the xml files and figure out the URIs that exist 3) Go to each URI and then download *all* content viewable on the webpage (images, etc...) so offline viewing is enabled. 4) Be able to send XML log files back to the server 5) I can catch all this stuff on the web site, these are more about C++ & Windows development. Thanks very much in advance!
-
Hey folks, I'm using C++ & MFC (no .NET). I need to accomplish the following, and I really don't know how to go about any of it. If you know of links/ways to do it 1) Go grab an XML file on the server, and download it, saving it to disk (if necessary) or justu loading it into memory. 2) Parse the xml files and figure out the URIs that exist 3) Go to each URI and then download *all* content viewable on the webpage (images, etc...) so offline viewing is enabled. 4) Be able to send XML log files back to the server 5) I can catch all this stuff on the web site, these are more about C++ & Windows development. Thanks very much in advance!
I think you dont need to one example anyway maybe it is some helpful to you 1- see
IXMLDocument or DOMDocument
and Reading XML Files with the XmlTextReader Class[^] 2-Simple XML Parsing on WinCE 4.2 Using C++ and MSXML 3.0 [^] 3-Creating a Yahoo! Mail Client using IWebBrowser2 and DHTML[^]_**
**_
whitesky
-
Hey folks, I'm using C++ & MFC (no .NET). I need to accomplish the following, and I really don't know how to go about any of it. If you know of links/ways to do it 1) Go grab an XML file on the server, and download it, saving it to disk (if necessary) or justu loading it into memory. 2) Parse the xml files and figure out the URIs that exist 3) Go to each URI and then download *all* content viewable on the webpage (images, etc...) so offline viewing is enabled. 4) Be able to send XML log files back to the server 5) I can catch all this stuff on the web site, these are more about C++ & Windows development. Thanks very much in advance!
you can use a crawler to fetch those xml files.There are many xml parsers available.microsoft has provided a toolkit called msxml which is able to parse xml files.
-
you can use a crawler to fetch those xml files.There are many xml parsers available.microsoft has provided a toolkit called msxml which is able to parse xml files.