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.
Asked
Active
Viewed 1,688 times
0
-
have you tried JAXB 2.0? – Umesh Awasthi Apr 10 '12 at 12:57
-
I have just started with JAXB 2.0 with the help of link provided my @MichaBa. – Himanshu Yadav Apr 10 '12 at 13:01
-
go ahead its one of the good way to validate and you will be able to get information about validation error. – Umesh Awasthi Apr 10 '12 at 13:04
-
@UmeshAwasthi Do you know how to get the JAXBContext in my case as I don not have any class out of XML. – Himanshu Yadav Apr 10 '12 at 14:17
1 Answers
2
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