JAXB Pertanyaan dan Jawaban Wawancara
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 |
Simpan untuk Revisi
Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.
Masuk untuk menyimpan bookmark, pertanyaan sulit, dan set revisi.
Apakah ini membantu? Ya Tidak
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?