Re: From Pox to Pojo
----- 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]
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format