JAXB 面试题与答案
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> |
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
这有帮助吗? 是 否
用户评价最有帮助的内容:
- What Is XML Binding?
- What is XML Binding Relationships?
- Please explain JAXB Use Cases.
- Why Use XML Binding?
- What are the goals of JAXB?