[xsd-users] coverting xml_schema::string to std::string

Boris Kolpackov boris at codesynthesis.com
Fri Sep 21 13:45:42 EDT 2012


Hi Arul,

Prakash, Arul <Arul.Prakash2 at rsa.com> writes:

> How to convert xml_schema::string to std::string ?

xml_schema::string derives from std::string so you can use an instance
of this type anywhere std::string is expected. If you still want to get
the value as std::string, then you can do:

xml_schema::string s ("string");
std::string& r (s);

Boris



More information about the xsd-users mailing list