






















|
| |
The Xerces Native Interface (XNI) is an internal API that is
independent of other XML APIs and is used to implement the
Xerces family of parsers. XNI allows a wide variety of parsers
to be written in an easy and modular fashion. The XNI samples
included with Xerces are simple examples of how to program
using the XNI API. However, for information on how to take full
advantage of this powerful framework, refer to the
XNI Manual.
Basic XNI samples:
Parser configuration samples:
Most of the XNI samples have a command line option that allows the
user to specify a different XNI parser configuration to use. In
order to supply another parser configuration besides the default
Xerces StandardParserConfiguration , the configuration
must implement the
org.apache.xerces.xni.parser.XMLParserConfiguration
interface.
|
| |
This is an example of a component that intercepts document handler events and gathers PSVI information. The PSVI output is written as XML.
This class can NOT be run as a standalone
program. It is only an example of how to write a component. See xni.parser.PSVIParser.
|
|
|