[xsde-users] ios_base::failure exceptions when trying to parse

Boris Kolpackov boris at codesynthesis.com
Fri Jan 10 03:25:11 EST 2014


Hi Jonathan,

Jonathan Haws <Jonathan.Haws at sdl.usu.edu> writes:

> void seiwg_platformstatusreport_p(const char * const xml)
>
>     doc_p.parse(xml); // <<------EXCEPTION THROWN HERE!!!

Does the xml variable contain the file name of the XML document
or the XML document itself? This function expects it to be the
file name. If it is the XML itself, then you should do something
like this instead:

doc_p.parse(xml, strlen (xml), true);

See the documentation for details.

Boris



More information about the xsde-users mailing list