1, DTD simple introduction
2. Getting Started with schema
The purpose of the schema is to write a restricted file of XML in a more logical way (based on XML syntax)
Schemas can use namespaces to support multiple elements with the same name
Schema can be very good to complete the modification of Java or all objects and provide a large number of data types
2.1. Namespaces
Introduction of Schema in XML
Introduction via File path
2.2. Elements and attributes
2.3. Related constraints
3. In-depth schema
3.1, the creation of the data model
3.2, the relevant design solutions
Russian Doll
There is only one root element that is written in a nested way
Advantages: Clear structure, only one root element
Cons: Elements cannot be reused
Salami Slice
Advantage: Ability to maximize reuse
Cons: The root element is not clear
Venetian Blind
3.3. Schema and Java conversion
Use XJC to complete the schema-to-Java transformation
4. Java and XML
4.1. JAXB handles Java and XML
4.2. Stax processing XML
Cursor-based lookups
Finding based on iterative model
Use of filters
Use of XPath
Creating XML Using Xmlstreamwriter
Update node information with transformer
Ii. XML DTD and Schema