问题
I am looking for a Java framework which can validate order of elements in XML against XSD. I have already tried JDK 5's javax.xml.Validate and popular article http://www.ibm.com/developerworks/xml/library/x-javaxmlvalidapi/index.html But none of it gave me specific result.These implementation one way or another told me that xml is invalid but could not provide me specific error description.
回答1:
maybe take a look at this page: https://www.java-tips.org/java-ee-tips-100042/175-java-architecture-for-xml-binding/1833-what-is-new-in-jaxb-20.html
You can do nearly everything in XML with the JAXB
来源:https://stackoverflow.com/questions/10089089/framework-to-validate-xml-order-against-xsd