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:
dom\Counter.java - Apache Xerves DOM Sample
What is the dom\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 installed.
✍: FYIcenter
dom\Counter.java provided in the Apache Xerces package illustrates how to traverse a DOM tree in order to get information about the document. The output of this program shows the time and count of elements, attributes, ignorable whitespaces, and characters appearing in the document. Three times are shown: the parse time, the first traversal of the document, and the second traversal of the tree.
Here is how to run dom\Counter.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 dom.Counter usage: java dom.Counter (options) uri ... options: -p name Select parser by name. -x number Select number of repetitions. -n | -N Turn on/off namespace processing. -v | -V Turn on/off validation. -s | -S Turn on/off Schema validation support. NOTE: Not supported by all parsers. -f | -F Turn on/off Schema full checking. NOTE: Requires use of -s and not supported by all parsers. -hs | -HS Turn on/off honouring of all schema locations. NOTE: Requires use of -s and not supported by all parsers. -va | -VA Turn on/off validation of schema annotations. NOTE: Requires use of -s and not supported by all parsers. -dv | -DV Turn on/off dynamic validation. NOTE: Not supported by all parsers. -xi | -XI Turn on/off XInclude processing. NOTE: Not supported by all parsers. -xb | -XB Turn on/off base URI fixup during XInclude processing. NOTE: Requires use of -xi and not supported by all parsers. -xl | -XL Turn on/off language fixup during XInclude processing. NOTE: Requires use of -xi and not supported by all parsers. -h This help screen. defaults: Parser: dom.wrappers.Xerces Repetition: 1 Namespaces: on Validation: off Schema: off Schema full checking: off Honour all schema locations: off Validate annotations: off Dynamic: off XInclude: off XInclude base URI fixup: on XInclude language fixup: on
⇒ JAR Files Required to Run dom\Counter.java
⇐ Using Apache Xerces DOM Sample Programs
2017-12-04, 4876🔥, 0💬
Popular Posts:
What Is commons-io-2.11.jar? commons-io-2.11.jar is the JAR file for Commons IO 2.5, which is a libr...
commons-fileupload-1.3.3 -sources.jaris the source JAR file for Apache Commons FileUpload 1.3., whic...
What Is javaws.jar in JRE (Java Runtime Environment) 8? javaws.jar in JRE (Java Runtime Environment)...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
JRE 8 deploy.jar is the JAR file for JRE 8 Java Control Panel and other deploy tools. JRE (Java Runt...