users@jaxb.java.net

Re: unmarshalling ignores element-attribute 'xml'

From: korsdal <nabble_at_chicken-flu.de>
Date: Wed, 18 Mar 2009 06:48:25 -0700 (PDT)

ok, i just converted a DTD to XSD manually. the DTD has another attribute
'lang' without the 'xml'-prefix, which causes some compilation errors saying
"attribute lang already exists...'.

while this 2nd 'lang' is marked as deprecated within newer versions of the
DTD, i removed it from the XSD and compilation worked as well as
unmarshalling. great! and not great:

this is not what i want. i dont want to deal with ugly workarounds.

---
One possibility would be the implementation of an xjc plugin that iterates
through the classes while they are still com.sun.codemodel objects and adds
the annotations to all "lang" String fields. That would be fairly easy to
write.
---
which annotation? 
thanks for your effort so far.
tim
-- 
View this message in context: http://www.nabble.com/unmarshalling-ignores-element-attribute-%27xml%27-tp22558466p22579157.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.