问题
I am transforming an XML into another XML using dom4j. Now I need to validate the transformed XML with an external XSD file which I m doing through SAXParserFactory.
When I run the program, there is an exception with message
violation of Unique Particle Attribution
How can I disable this Unique Particle Attribution in my program?
回答1:
Most likely this should address your problem:
http://xerces.apache.org/xerces2-j/features.html#validation.schema-full-checking
来源:https://stackoverflow.com/questions/8951348/disable-unique-partition-attribution-schema-validation-in-java