[xsd-users] xml_schema::date_time from std::string

Boris Kolpackov boris at codesynthesis.com
Thu Jul 13 09:44:32 EDT 2017


Ashish Singhal <ashish at ashishsinghal.com> writes:

> I'm trying to construct a xml_schema::date_time directly from std::string

If the string representation conforms to the XML Schema format then you
should be able to use this constructor:

date_time (const std::basic_string<C>& s,
           const xercesc::DOMElement* e,
           flags f = 0,
           container* c = 0);

You can pass NULL as the second argument.

Boris



More information about the xsd-users mailing list