By default, JAVA supports XML. XML, which plays an important role in Java.
What is XML usually used?
1. Data Exchange is usually used in heterogeneous systems. For example, one system uses Java and the other system uses Delphi.
2. configuration file. All servlet, EJB, struts, and hibernate in J2EE development are configured using XML files. Although the properties file is also supported, XML is usually the first choice.
What are the advantages of XML?
1. Structured
2. Simple
3. scalability
4. Separated Content and Display
5. Data Interconnection
DTD & schema?
Integrity constraints on XML files.
DTD file suffix. DTD.
Schema file suffix. XSD.
XSL problems?
Rendering XML. Of course, CSS can also be used.
XML parsing?
There is usually a dedicated parser provided by Apache, and sun. There are currently two main technologies: Dom and sax.
DOM: one-time reading of XML files into the internal directory to form a DOM tree. This is more efficient because of the resident memory. But it is not suitable for large files. It is model-based.
Sax: based on events. It is not a flash to load XML into the internal, load a little read. It is suitable for reading and writing large files.
Is JDOM a third-party development kit specially implemented for Java?
A large number of JavaProgramJava programmers can quickly get started with the interfaces, specific classes, collection frameworks, and so on, and quickly compile programs for XML operations.