Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Performance of XML Parsers with jaxp\SourceValidator.java
How to compare performances of various XML parsers with the jaxp\SourceValidator.java provided in the Apache Xerces package?
✍: FYIcenter
If you have XML file with an XML schema, you can use the jaxp\SourceValidator.java provided in the Apache Xerces package to compare performances of various XML parsers.
Compile and run jaxp\SourceValidator.java, if you have Apache Xerces 2.11.0 installed:
\fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\java -cp .;..\xercesImpl.jar;..\xml-apis.jar jaxp.SourceValidator -a User.xsd -i UserXSD.xml -vs dom UserXSD.xml: 15 ms \fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\java -cp .;..\xercesImpl.jar;..\xml-apis.jar jaxp.SourceValidator -a User.xsd -i UserXSD.xml -vs sax UserXSD.xml: 12 ms \fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\java -cp .;..\xercesImpl.jar;..\xml-apis.jar jaxp.SourceValidator -a User.xsd -i UserXSD.xml -vs stream UserXSD.xml: 18 ms \fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\java -cp .;..\xercesImpl.jar;..\xml-apis.jar jaxp.SourceValidator -a User.xsd -i UserXSD.xml -vs stax UserXSD.xml: 17 ms
The output shows the SAX parser is faster than DOM, StAX and Stream parsers.
⇒ jaxp\TypeInfoWriter.java - Apache Xerves JAXP Sample
⇐ jaxp\SourceValidator.java - Apache Xerves JAXP Sample
2017-07-30, 14800🔥, 0💬
Popular Posts:
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...
commons-fileupload-1.3.3 -sources.jaris the source JAR file for Apache Commons FileUpload 1.3., whic...
What Is ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is the JAR files of ojdbc.jar, ...
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module. JDK 11 Desktop module compiled ...
JAX-RPC is an API for building Web services and clients that used remote procedure calls (RPC) and X...