Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MFC: Easy way to download XML & HTML files to disk?

MFC: Easy way to download XML & HTML files to disk?

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharphtmlsysadminxml
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chasetoys
    wrote on last edited by
    #1

    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!

    H S 2 Replies Last reply
    0
    • C chasetoys

      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!

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      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


      1 Reply Last reply
      0
      • C chasetoys

        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!

        S Offline
        S Offline
        shilianghui2
        wrote on last edited by
        #3

        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.

        C 1 Reply Last reply
        0
        • S shilianghui2

          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.

          C Offline
          C Offline
          chasetoys
          wrote on last edited by
          #4

          Are there any C++ libraries available for parsing XML? I'd eventually like to deploy on other platforms, and I'd like to minimize Windows dependencies if possible. Although if its easier with Windows libraries, I'll gladly use them. -chasetoys

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups