Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAXB : case insensitive attributes

843834Aug 31 2005 — edited Aug 31 2005
I frequently receive an XML file which I do not have control over. ( It is generated outside of my organization)

I derived a XML schema by analyzing the document structure and used the schema to generate a set of JAXB generated classes.

Nevertheless, the file sometimes comes with some minor "mistakes" in the attributes names of some entities by having the wrong uppercase or lowercase. (Vgr. myAttributeName vs myAttributeNAme )

Is there any way to tell JAXB to be case insenstive on the attribute names ?

Unmarshalling the file fails at the attribute with the wrong case.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 28 2005
Added on Aug 31 2005
1 comment
1,604 views