----- Original Message From: "Andrew Welch"
> Anyway, I've gone down the hand coded route because even though it's
> basic data centric XML, I needed a bit more behaviour from the
> enumerations that I wasn't getting from the generated code. For
> example given this:
>
> <xs:simpleType name="item">
> <xs:restriction base="xs:string">
> <xs:enumeration value="009">
> <xs:annotation>
> <xs:documentation>Not Applicable</xs:documentation>
>
> My ideal enum is something like:
>
> Item.Not_Applicable
> ...
A number of tools allow manual configuration of the various names used in a
mapping. This is particularly important for C/C++ where the set of
characters allowed by XML is much bigger than what is allowed by C/C++. To
be honest, we don't go down to the level of giving control over the names of
enumerations. This is something we could (and should) do without much
effort.
One thing I did mean to mention is that, from what I have read, XMLBeans
alleges to take a slightly different approach to databinding from other
tools. Unfortunately I can't remember what this is!
Also, have to tried JAXB?
Pete.
=============================================
Pete Cordell
Codalogic
for XML Schema to C++ data binding visit
http://www.codalogic.com/lmx/
=============================================