Woodstox : Handling Warning Using XMLReporter
Overview This article demonstrates the usage of XMLReporter in handling warning during StAX parsing. Create employee.dtd as shown below. Note that the entity ‘commonAddress’ is defined twice in the DTD (see lines 5-6 below). This will throw a warning condition during parsing. Create employee.xml as shown below. Create TestWarning as shown below. Define a custom … Read more