Realization from XML element structure to Java

xiaoxiao2021-03-06  14

In the first few months, some XML operations were organized when they were doing projects. Here, according to your own programming habits, do it. The most basic of XML operation is SAX, DOM. But here is not talking about SAX, DOM how to use. Instead, it will talk about its Java implementation from the perspective of XML elements. XML is composed of multiple elements, which can be divided into several basic types, such as Xmlelement, XmlSimpleElement, XMLComplexElement, XmlCollection, XmlCollectionElement, and from class names you can determine the XML objects described in this class.

The following is a description with an example: