This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Unknown Elements in JAXB 1.6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Unknown Elements in JAXB 1.6" Watch "Unknown Elements in JAXB 1.6" New topic
Author

Unknown Elements in JAXB 1.6

Tom Ciampaglia
Greenhorn

Joined: Sep 23, 2010
Posts: 1
Hello. I am an experience Java developer but have never used JAXB before. My client (who is a bit behind the times) is using JAXB 1.6 and Java 1.4. For various reasons, I cannot upgrade at the moment.

The problem I am having is that one of the groups we interface with has decided to add some new XML tags without telling us. I'm trying to resolve the issue without hardcoding the new tags because we don't need them at all. I want to completely ignore them.

Does anyone know of a customization or XSD change that I can use to globally ignore any new tags that we don't specify in the XSD.

In other words, the XML should be validated based on the elements in the XSD and any other tags should be ignored without an exception.

Thanks,
Tom
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unknown Elements in JAXB 1.6
 
Similar Threads
jaxb xml parsing, null pointer for IDRef element
Facade design pattern in web services
Using JAXB APIs in jdk1.6 and jdk1.4
XML to JAVA binding with CASTOR or JAXB
Creating empty tags using JAXB.