JAXB Interview Questions and Answers
Question: What are the disadvantages/non-goals of JAXB?Answer: β’ Standardize generated Javaβ classes generated by different JAXB implementations may not be compatible with each other β’ Preserve XML equivalence β unmarshalling XML to objects and marshalling back to XML may not result in equivalent XML β’ Bind existing JavaBeans to schemas β can only marshal and unmarshal classes generated by JAXB β may be added later β’ Schema evolution support β canβ t modify previously generated code to support schema changes β must generated new code β’ Allow generated Java to access XML elements/attributes not described in initial schema β’ Partial binding β unmarshalling only a subset of an XML document breaks round tripping β’ Implement every feature of the schema language β itβ s tough to implement all of XML Schema! β’ Support DTDs β focusing on XML Schema β DTDs were supported in an earlier version, but wonβ t be anymore β tools for converting DTDs to XML Schemas exist |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful? Yes No
Most helpful rated by users:
- What Is XML Binding?
- What is XML Binding Relationships?
- Please explain JAXB Use Cases.
- Why Use XML Binding?
- What are the goals of JAXB?