Validate an XSD using Java
I would like to automatically val开发者_开发问答idate that an XSD Schema is correct. Is there a java API or something Í can call to do this automatically?
Super-short answer: http://download.oracle.com/javase/1.5.0/docs/api/javax/xml/validation/package-summary.html
This can be done with Xerces. We did in in Apache CXF. The easiest thing is to read the source.
To look at just the subproject that does this, read here.
精彩评论