[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: From Pox to Pojo

  • From: "Pete Cordell" <petexmldev@t...>
  • To: "Andrew Welch" <andrew.j.welch@g...>
  • Date: Thu, 11 Oct 2007 12:05:45 +0100

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 

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 Cordell
for XML Schema to C++ data binding visit

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.