xerces2使用的好处:http://xerces.apache.org/xerces2-j/
市面上有很多XML解析的类库,如Xerces, JAXB, JAXP, Dom4j,Xstream等。Xerces2是下一代高性能,完全兼容的XML解析工具。Xerces2定义了 Xerces Native Interface (XNI)规范,并提供了一个完整、兼容标准的 XNI 规范实现。该解析器是完全重新设计和实现的,更简单以及模块化。
Xerces2 Java is a library for parsing, validating and manipulating XML documents.
Xerces 2.x introduced the Xerces Native Interface (XNI), a complete framework for building parser components and configurations that is extremely modular and easy to program. XNI is merely an internal set of interfaces. There is no need for an XML application programmer to learn XNI if they only intend to interface to the Xerces2 parser using standard interfaces like JAXP, DOM, and SAX. Xerces developers and application developers that need more power and flexibility than that provided by the standard interfaces should read and understand XNI.
The latest version released, 2.11.0, provides support for the following standards and APIs:
Find out more about Apache Xerces2 Java.