You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Susan Weber <su...@peregrine.com> on 2001/08/21 20:06:20 UTC
I have written a schema and I want to use Xerces to validate it
xerces-users,
The following is a direct quote from the xerces 1 FAQ:
>I have written a schema and I want to use Xerces to
>validate it. How do I do this?
>
>The best way to solve this problem is to write a simple,
>valid instance document and use one of the sample programs
>that accompanies Xerces (such as sax.SAXCount or dom.DOMCount)
>to validate the instance document. While validating the
>instance document, Xerces will simultaneously validate the
>corresponding schema. We hope to introduce functionality to
>permit schemas to be validated independently of instance
>documents in Xerces2.
I want to validate a schema for which I do not have a corresponding
instance document. Am I to infer from the wording of this FAQ answer
that there is no possible way in xerces 1 to take a schema, convert
it to an instance by inserting the appropriate attributes into the
root element, and parse it against the schema for schema?
thanks,
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org