JAR Files Required to Run sax\Writer.java

Q

What JAR files are required to run sax\Writer.java provided in the Apache Xerces package?

✍: FYIcenter

A

1 JAR file is required to run sax\Writer.java provided in the Apache Xerces package:

\fyicenter\xerces-2_11_0\samples>dir ..

11/26/2010  03:41 PM         1,367,760 xercesImpl.jar

Compile the dom\Counter.java and run it on User.xml shown in the previous tutorial:

\fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\javac sax\Writer.java
Note: sax\Writer.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

\fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\java 
   -cp .;..\xercesImpl.jar sax.Writer User.xml

<?xml version="1.0" encoding="UTF-8"?>
<User>
    <ID>101</ID>
    <BirthDate>1970-01-01+00:01</BirthDate>
    <Name>Frank Y. Ivy</Name>
    <Sex>  Male</Sex>
</User>

 

XML DTD Validaiton with sax\Writer.java

sax\Writer.java - Apache Xerves SAX Sample

Using Apache Xerces SAX Sample Programs

⇑⇑ FAQ for Apache Xerces XML Parser

2017-10-08, 30643🔥, 0💬