- SNT / NSI (fr)
This Java component provides an XML parser and preprocessor.
If you want to test, launch
xppq-java provides an XML pull-parser .
You will find an example of use of the parser here.
XPPqParser is the parser, and
XPPqData contains information about each token that the parser encounter.
Preprocessor is a stream providing XML data which takes a stream containing XML data. So, if you have a method which takes a stream containing XML data, such as the parser above, you can insert the preprocessor between them.
The only difference is that you have
parse( new java.io.FileInputStream( fileName ) ); for the first method and
parse( new XPPqPreprocessor( new java.io.FileInputStream( fileName ) ) ); for the second.