Disable Unique Partition Attribution schema validation in java

让人想犯罪 __ 提交于 2019-12-11 16:13:38

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!