Home
Categories
Dictionary
Download
Project Details
Changes Log
FAQ
License

XML Includer



Two classes allow to process the XInclude declarations in a XML file:

XMLIncluder

The XMLIncluder class process the XInclude declarations in a XML file and creates a returning Reader.

Note that if you want to parse and validate an XML file, you don't need to use this class directly, but you can directly configure the XML parser class.

For example:
  XMLIncluder includer = new XMLIncluder(<my XML file>);
  String content = includer.getContent();

XMLNodeIncluder

The XMLNodeIncluder class does the same but uses the xml.tree nodes to create the tree structure.

For example:
   XMLNodeIncluder includer = new XMLNodeIncluder(<my XML file>);
   includer.write(<my output XML file>);

XMLNodeIncluder specific configuration

Several methods allow to further configure the result: It is also possible to customize the error handler and entity resolver of the underlying XMLSAXParser.

Includer configuration

Two methods allow to configure how the result will be created are available for the two includer classes:

See also


Categories: packages | xml

Copyright 2006-2024 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences