Woodstox : Validate against XML Schema
Overview This article demonstrates how to validate an XML document against an XML Schema by using Woodstox. Create employeeSchema.xml as shown below. It defines the employee element that contains id, name and salary sub-elements. Create validEmployee.xml as shown below. It is in accordance with employeeSchema.xml described above. Create invalidEmployee.xml as shown below. Note that it … Read more