Search code examples
c++xmlpoco

Poco parse XML document from byte buffer


I need to convert char buffer[] to the Poco XML document. I tried to work through the Poco XML and Net tutorial but I could not see any example for this. Can anyone give a working example of this? Thanks.


Solution

  • Put the string in a std::string, put that in a std::istringstream. Now you should be able to use the input stream in POCO.