XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] 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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS