[xsd-users] reading from string streams

Boris Kolpackov boris at codesynthesis.com
Mon May 5 20:11:48 EDT 2014


Hi Omkar,

Omkar Wagh <owagh at tower-research.com> writes:

> :444:1 error: Expected comment or processing instruction
> 
> std::string file_str(reinterpret_cast<char*> (plaintext)); 
> std::istringstream ptext_stream(file_str);

This normally has something to do with encoding or stray characters
in the XML string. What encoding is your XML in? Can you also print
the string you have created and see what's at line 444?

cerr << endl
     << "'" << file_str << "'"
     << endl;

Boris



More information about the xsd-users mailing list