Java – what is the difference between jaxp, JDOM, Dom4j and Xerces?
•
Java
What's the difference between them? It is said that jaxp is just an API specification, which is implemented by JDOM and Dom4j, isn't it? All this requires an XML parser, just like Xerces, doesn't it?
Solution
You are comparing apples with cars
>Jaxp is an API now bundled with JDK > JDOM is a different API and Library > Dom4j is also a different API and Library > Xerces is an XML parser implemented in Java A version of Xerces is also bundled in the JDK
The API you use is mainly about personal preferences I like JDOM partly because I am used to it Similarly, there are several implementations of XML parsers If you program in Java using the latest JDK, you will be able to use jaxp without adding external libraries
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码