[xsd-users] xml_schema exceptions

Boris Kolpackov boris at codesynthesis.com
Mon Jul 7 04:35:07 EDT 2014


Hi Tolga,

Tolga TUNA <tolgatuna_09 at hotmail.com> writes:

> Is it possible to convert that exception to standart string?
>     } catch (const xml_schema::exception& e) {
>         std::cerr << e << std::endl;        // e.c_str(); -> like this?
>     }

#include <sstream>

std::ostringstream os;
os << e;
std::string s (e.str ());

Boris



More information about the xsd-users mailing list