[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] From Pox to Pojo
- From: "Pete Cordell" <petexmldev@tech-know-ware.com>
- To: "Andrew Welch" <andrew.j.welch@gmail.com>
- Date: Thu, 11 Oct 2007 12:05:45 +0100
----- 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/
=============================================
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]