'Java' version of 'XPPq' (xppq-java')
This Java component provides an XML parser and preprocessor.
As indicated, to use this component, you also need the JREq wrapper.
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.
Here is an example of a method which parses a file containing XML data, and here the same method processing the same data once preprocessed.
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.