Hi Mark, Brute force is the way to do it and it only works if your working set at the time of your search is the complete set (obviously needs to be finite) of schemas which could ever be loaded by your application. Otherwise you can't be sure you found everything because more schemas you didn't know about (e.g. those specified in instance documents with xsi:schemaLocation) at the time you did your analysis could be loaded later that have types which derive from the base.
Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org Mark Brucks <bru...@charter.net> wrote on 09/03/2009 06:45:37 PM: > Is there any way (short of brute force) to determine all the types > that are extensions of a given type (the inverse of > XSTypeDefinition.getBaseType())? What I really need to do is to > create the entire set of type hierarchies, so that given any type I > can determine ALL types that are derived from it. > > Thanks - Mark Brucks > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org > For additional commands, e-mail: j-users-h...@xerces.apache.org