[xsd-users] vocabulary-specific types for simple elements

Bill Pringlemeir bpringle at sympatico.ca
Tue Jan 12 17:34:40 EST 2010


On 12 Jan 2010, sutambe at dre.vanderbilt.edu wrote:

>> You can also customize a 'simple type'.  The customization guide has
>> information on how to do this for a date class.  

> I'm not sure which customization guide you referring to. I found
> several pdf files in the xsd installation.

Sorry, it is here,
  "http://wiki.codesynthesis.com/Tree/Customization_guide".

 Additional information is in the distribution in the custom example
(superman or something) and there are details in the manuals as well.
If you are happy with the simple type, then that is ok.  However, if
you want a 'price' class with a 'std::string prettyPrint()', etc.  You
would wrap this with your own class which would provide the
implementation of 'prettyPrint()'.

There are more extensive examples that can control the serialization,
data storage, etc.

hth,
Bill Pringlemeir.

-- 
Finish your beer -- there are sober people in China!



More information about the xsd-users mailing list