JAXB%20Interview%20Questions%20and%20Answers
Question: Syntax of customization.Answer: • Customizations can be specified in– the XML Schema (our focus) – a binding declarations XML document (not well supported by RI yet) • The XML Schema must declare the JAXB namespace and version <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema” xmlns:jxb="http://java.sun.com/xml/ns/jaxb" jxb:version="1.0"> • Customization elements are placed in annotation elements <xsd:annotation> <xsd:appinfo> binding declarations </xsd:appinfo> </xsd:annotation> |
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?