Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
jaxp\SourceValidator.java - Apache Xerves JAXP Sample
What is the jaxp\SourceValidator.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 installed.
✍: FYIcenter
jaxp\SourceValidator.java provided in the Apache Xerces package
demonstrates how to use the JAXP 1.4 Validation API to create a validator
and use the validator to validate input from SAX, DOM or a stream. The output
of this program shows the time spent executing the Validator.validate(Source)
method.
Here is how to run jaxp\SourceValidator.java, if you have Apache Xerces 2.11.0 installed:
>\fyicenter\jdk-1.8.0\bin\java
-cp \fyicenter\xerces-2_11_0\xercesSamples.jar jaxp.SourceValidator
usage: java jaxp.SourceValidator (options) ...
options:
-l name Select schema language by name.
-x number Select number of repetitions.
-a uri ... Provide a list of schema documents
-i uri ... Provide a list of instance documents to validate
-vs source Select validation source (sax|dom|stax|stream)
-f | -F Turn on/off Schema full checking.
NOTE: Not supported by all schema factories and validators.
-hs | -HS Turn on/off honouring of all schema locations.
NOTE: Not supported by all schema factories and validators.
-va | -VA Turn on/off validation of schema annotations.
NOTE: Not supported by all schema factories and validators.
-ga | -GA Turn on/off generation of synthetic schema annotations.
NOTE: Not supported by all schema factories and validators.
-m | -M Turn on/off memory usage report
-h This help screen.
defaults:
Schema language: http://www.w3.org/2001/XMLSchema
Repetition: 1
Validation source: sax
Schema full checking: off
Honour all schema locations: off
Validate annotations: off
Generate synthetic annotations: off
Memory: off
notes:
The speed and memory results from this program should NOT be used as the
basis of parser performance comparison! Real analytical methods should be
used. For better results, perform multiple document validations within the
same virtual machine to remove class loading from parse time and memory usage.
⇒ Performance of XML Parsers with jaxp\SourceValidator.java
⇐ Using Apache Xerces JAXP Sample Programs
2017-07-30, ≈36🔥, 0💬
Popular Posts:
JDK 11 java.rmi.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) module. JDK 11 RMI m...
How to download and install javamail-1_2.zip? The JavaMail API is a set of abstract APIs that model ...
xml-commons External Source Code Files are provided in the source package file, xml-commons-external...
JDK 11 jdk.rmic.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) Compiler Tool tool, ...
JDK 17 jdk.hotspot.agent.jmod is the JMOD file for JDK 17 Hotspot Agent module. JDK 17 Hotspot Agent...