Boost library and instream from internet

Hi!

The function read_xml(filename, ptree) I want it to take the XML from an internet address like this one http://api.eve-central.com/api/quicklook?typeid=34&usesystem=30000142.

How do I do that?

From the Boost's documentation:
1
2
3
4
5
6
7
    // Create an empty property tree object
    using boost::property_tree::ptree;
    ptree pt;

    // Load the XML file into the property tree. If reading fails
    // (cannot open file, parse error), an exception is thrown.
    read_xml(filename, pt);


I've never retrieved anything from anything other then my own computer so kinda new at this. Do I have to stream the info -> a file and then hand that to the function or can I just stream the info directly from the page?

Further documentation: http://www.boost.org/doc/libs/1_53_0/doc/html/boost/property_tree/xml_parser/read_xml_idp62266992.html
Last edited on
Topic archived. No new replies allowed.