[xsd-users] Boost date customization in xsd
vherard at alphasqr.com
vherard at alphasqr.com
Tue May 19 09:11:27 EDT 2009
Thanks. This is very usefull. Regards
-------- Original Message --------
Subject: Re: [xsd-users] Boos From: Boris Kolpackov <boris at codesynthesi Date: Thu, May 14, 2009 9:05 am
To: vherard at alphasqr.com
Cc: xsd-users at codesynthesis.com
Hi,
vherard at alphasqr.com < > I added a constructor to the Boost
> date as input and I'm conce > not correctly initialized.< > date::
> date (const gregorian :: date& d)
> , NULL , > gregorian::date (d)
> {
> }
The simp this
case:
date::
date (const gregorian::date& d)
: gregorian::date (d) {
}
> When I serialize classes that use customized dat incorrect
> output.
You need to implement serializat type,
something along these lines:
namespace xml_schema
{
void
operator<< (xercesc::DOMElem {
e << to_extended_iso_string (d }
void
operator<< (xercesc::DOMAttr& a, const dat {
a << to_extended_iso_string (d);
}
voidoperator<< (xml_schema::list_stream& ls, const date& d)
ls.os_ << to_extended_iso_string (d);
}
}
Boris
More information about the xsd-users
mailing list