Beginner - Download file from web

This is a discussion on Beginner - Download file from web within the C++ Programming forums, part of the General Programming Boards category; Hi, I am new to programming with Visual C++ and have been trying to get a simple program running - ...

  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, 11: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, 08:54 AM
  3. Reverse Engineering on a Download file
    By c_geek in forum C Programming
    Replies: 1
    Last Post: 03-22-2008, 04:15 PM
  4. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 02:19 PM
  5. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 01:13 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21