Thread: Beginner - Download file from web

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    2

    Beginner - Download file from web

    Hi,

    I am new to programming with Visual C++ and have been trying to get a simple program running - and having difficulties.

    What I want to write is a program which:
    - Can download an XML file from the web
    - Parse it to retrieve information held in specific XML elements

    Could someone point me in the direction of a good tutorial or help me out woth some example code?

    Many thanks

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    libcurl or webkit would help you download the file. There are probably a dozen C++ XML parsers around.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    2
    Thanks for your reply,

    The trouble I am having is understanding how to use libraries and existing XML parsers. I have been trying to find tutorials explaining things such as downloading files and how to simply parse xml - but have had no luck.

    What would be great is a small code fragment illustrating how to achieve this, I usually learn quicker by looking at working code rather than interpreting instructions!

    Again, thanks

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Did you try doing "libcurl example" in google?

    It's no point fretting over the XML parsing until you have the code to download it working, I'd say.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  3. Reverse Engineering on a Download file
    By c_geek in forum C Programming
    Replies: 1
    Last Post: 03-22-2008, 03:15 PM
  4. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  5. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM