[xsd-users] XSD 3.1.0.b1 released
boris at codesynthesis.com
Thu Jan 17 03:08:39 EST 2008
Esben Skovenborg <EsbenS at TCElectronic.com> writes:
> This works great for me, in a number of places where IntelliSense would
> previously give up. I'm using Visual Studio 2005 SP1.
Great, thanks for testing and letting us know!
> > * New implementations of the XML Schema date/time types (date,
> > dateTime, duration, gDay, gMonth, gMonthDay, gYear, gYearMonth,
> > and time) that represent the information in the numerical form.
> In XSD 3.0 I would create an xml_schema::date_time object, corresponding
> to an xs:dateTime attribute, using a constructor with only a std::string
> as argument. This constructor seems to have disappeared in the new
> implementation? So how do I transform a string such as
> "2008-01-16T18:06:33" into a date_time object?
You would simply use the numerical notation:
xml_schema::date_time dt (2008, 1, 16, 18, 6, 33);
The new date/time types are documented in the C++/Tree Mapping User
Manual in Sections 2.5.7-2.5.16. The manual can be found in the
documentation/cxx/tree/manual/ directory in the beta distribution.
More information about the xsd-users