Woodstox : Validate XML generated by Woodstox
Overview In this article we shall perform validation of generated XML by XMLStreamWriter . This demonstrates Woodstox’ validation capabilities while generating XML output. Create employee.dtd as shown below. It defines the employee element that contains id, name and salary sub-elements. Create TestValidationXmlStreamWriter as shown below. Create a valid XML as per the DTD as shown … Read more