Package org.apache.xml.resolver.apps
Class xread
java.lang.Object
org.apache.xml.resolver.apps.xread
A simple command-line XML parsing application.
This class implements a simple command-line XML Parser. It's just a little wrapper around the JAXP XMLReader with support for catalogs.
Usage: xread [options] document.xml
Where:
-c
catalogfile- Load a particular catalog file.
-w
- Perform a well-formed parse, not a validating parse.
-v
(the default)- Perform a validating parse.
-s
- Enable W3C XML Schema validation.
-n
- Perform a namespace-ignorant parse.
-N
(the default)- Perform a namespace-aware parse.
-d
integer- Set the debug level. Warnings are shown if the debug level is > 2.
-E
integer- Set the maximum number of errors to display.
The process ends with error-level 1, if there errors.
- Version:
- 1.0
- Author:
- Norman Walsh Norman.Walsh@Sun.COM
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
xread
public xread()
-
-
Method Details
-
main
The main entry point- Throws:
FileNotFoundException
IOException
-