tags:

views:

112

answers:

2

Does anyone familiar with libxml++ know if it's possible to load the XML document from a string instead of a file? Alternately, if it can load a document directly from a web page, that would do.

Thanks

+1  A: 

It sounds like you are looking for either xmlpp::Parser::parse_memory or xmlpp::DomParser::parse_memory.

Each of those classes also have a parse_stream method which take a std::istream if that is more convenient.

R Samuel Klatchko
A: 

That's correct, ticpp::DomParser::parse_memory should do it.

wash