Table of Contents

'Java' version of 'XPPq' (xppq-java')

GitHub Travis CI (GNU/Linux & macOS) AppVeyor (Windows)
xppq-java on GitHub xppq-java on Travis CI xppq-java on AppVeyor

Description

This Java component provides an XML parser and preprocessor.

Installation

See installation.

As indicated, to use this component, you also need the JREq wrapper.

Usage

If you want to test, launch java XPPqTest.

Parser

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.

The preprocessor

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.

Other

See XPPq.