An XSD file is an XML file, so you can load it into a DOM and do an XPath count() on it like any other XML document.
Chip H.
____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first