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 Lingzhi Zhang <lz...@cse.ogi.edu> on 2003/07/16 01:38:09 UTC
what is the validation mechanism against schema?
Hi,
I am curious about the mechanism that Xerces validates an XML document
against schema. For example, there is only tag in XML data, however, the
elemement name might be associated with a type definition in schema. How
does Xerces maps the tag name (element name) into type name and then
validate it with the type definition? Are there some convenient method
provide this functionlity in the API?
Another thing I am interested in is how Xerces determine definition of a
tag in XML document. The tag name corresponds to a element declaration
name in the schema. However, the same element declaration may appears
serveral places in the schema. So to find the declaration in schema needs
to check the context. In the worst case, the validat context may be almost
the whole document (e.g. two paths exactly the same from botton until they
reach the immediate child of root element). Is my understanding correct?
Thank.
Stephen
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org