1

I have an XSD and I want to verify incoming XML files from a webservice against that XSD for schema validation?

Any suggestions or pointers for existing Frameworks in Java to do that? Help is appreciated in advance.

Cheers

Priyank
  • 14,231
  • 18
  • 78
  • 107
  • Duplicate of http://stackoverflow.com/questions/15732/whats-the-best-way-to-validate-an-xml-file-against-an-xsd-file – McDowell Aug 19 '09 at 10:54
  • 1
    No, this is a very different problem, since webservices are involved. @Priyank, what web service library are you using? – skaffman Aug 19 '09 at 10:58
  • Hey guys, Thanks a lot for inputs. fortunately, I could lay my hands on the piece of code that worked for me. So it's solved for now.. I'll post the solution here in a bit. -Cheers – Priyank Aug 19 '09 at 12:29

1 Answers1

2

You can use the built-in JAXP API (in Java 5 or later). http://www.ibm.com/developerworks/xml/library/x-javaxmlvalidapi.html

Jeff Storey
  • 56,312
  • 72
  • 233
  • 406