Hi
I'm developing an XML format that is extensible. The format serves as
a kind of container with well-defined extension points. The following
example shows a document that is similar to the format I'm using:
<container xmlns="urn:container">
<binding name="x"/>
<access xmlns="urn:xpath">...</access>
</container>
I want to validate the above XML against the corresponding schemas.
However, I don't want to specify the schema locations inside the
document (I don't trust the creators of the document). I'd like to
look up the schemas at runtime based on the namespace attribute.
Unfortunately, I haven't been able to figure out how to tell Xerces
which schema to use to validate the document.
I know, I could specify all the schema locations programatically. But
I don't want to do that. I'd rather have Xerces ask me on demand how
to resolve the namespace to a schema document (kind of like an
EntityResolver but based on the namespace).
Is this approach possible with Xerces? If yes, how?
Thanks
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]