Woodstox : java-xml-woodstox-configuration-settings

Overview

Woodstox provides numerous settings to control XML processing.

A bulk of these settings are available in
XMLInputFactory
class. A listing of these settings is provided below:

PropertyDetails
IS_NAMESPACE_AWARETo turn on/off namespace support.This is to support XML 1.0 documents,
IS_VALIDATINGTo turn on/off implementation specific validation
IS_COALESCINGRequires the parser to coalesce adjacent character data sections
IS_REPLACING_ENTITY_REFERENCESRequires the parser to replace internal entity references with their replacement text and report them as characters
IS_SUPPORTING_EXTERNAL_ENTITIESRequires the parser to resolve external parsed entities
SUPPORT_DTDRequires the parser to support DTDs
REPORTERTo set the implementation of the XMLReporter interface

The following examples demonstrate how to configure a few of these settings:

Other settings may be used using the same approach as outlined in the above examples

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to top
Bitnami