Hi Elena,

> Xerces does not allow you to validate a schema against Schema for
> Schemas.

Just out of curiosity, why doens't Xerces allow you to validate a Schema against
the schema for schemas?
Can't you supply the Schema for schemas in the
"http://apache.org/xml/properties/schema/external-schemaLocation"; property and
then validate normally? What's different with the Schema for schemas compared to
other schemas?
Like this:

reader.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation";,
"XMLSchema.xsd");

Cheers,
/Eddie

>
>
> > but, you avoided the quaestion that i asked, shouldnt xerces 'know' that i
> > am asking it to validate a schema?
>
> No. The DocumentTracer is design to trace instance documents (and
> validate those). For parsing XML Schemas we use completely different
> code which has XML Schema validation code built-in. If you don't need
> events to parser XML Schemas use dom.ASBuilder sample:
> http://xml.apache.org/xerces2-j/samples-dom.html#ASBuilder
>
> --
> Elena Litani / IBM Toronto
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to