what is the validation mechanism against schema? 2003-07-15 - By Lingzhi Zhang
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@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|