From: David C. <dc...@st...> - 2007-04-24 19:04:19
|
Stefan Bodewig wrote: > On Tue, 24 Apr 2007, David Carver <dc...@st...> wrote: > > >> I mean making sure that the schema compiles in the schema parser >> with out error. Making sure that the schema conforms to the rules >> specified by XML Schemas 1.0. >> > > I see. How do I do that using the JAXP API? > > This article shows how to pre-compile a schema using JAXP 1.3 api: https://jaxp.dev.java.net/article/jaxp-1_3-article.html#Compile_Schema(s) If there are no exceptions tossed during the compilation then the Schema is valid, otherwise it isn't. >> Again, it would be nice to be able to specify on a test basis which >> Schema Parsers to use for a particular test, and not just instance >> availability. >> > > For the instance tests XMLUnit will use the configured SAX parser. > > That works. |