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

Jonathan Haws Jonathan.Haws at sdl.usu.edu
Fri Jan 10 09:07:11 EST 2014


Ah yes, that's right. I had forgot about that. It's been a while since I've used this tool! Thanks, Boris!


Sent from my Verizon Wireless 4G LTE smartphone


-------- Original message --------
From: Boris Kolpackov
Date:01/10/2014 1:27 AM (GMT-07:00)
To: Jonathan Haws
Cc: xsde-users at codesynthesis.com
Subject: Re: [xsde-users] ios_base::failure exceptions when trying to parse

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