Algorithm for identifying the type of a given element

When given 

a) an XML Schema document S, and 
b) an XML document plus an element E therein (e.g., by an XPath expression),


does anybody know an algorithm to determine the complex type of E as defined
by S? Or, if E does not have an according complex type, to determine the
complex type of the "nearest" ancestor of E that has an according complex type?

Kind Regards,
Martin Bernauer

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

Received on Thursday, 11 July 2002 10:38:13 UTC