This is kind of on purpose. How do you find out what Java classes are contained in a jar? You have to crack the jar open and poke into it. We basically do not want to constrain the method you use to get access to your types: as long as they are available in the current classloader, it's totally transparent how they got there.
The way I would do it is: compile the schemas using the API (XmlBeans.compileXmlBeans()) instead of using "scomp", get a SchemaTypeSystem back and call .globalElements() and .globalTypes() on it. But if you insist on using the jar, then look in it more closely and you will be able to figure out where all the names are stored, it's just that you will be in "unsupported - do at your own risk" territory at that point :-) Radu -----Original Message----- From: Mark Swanson [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 2:21 PM To: dev@xmlbeans.apache.org Subject: Q: enumerate XmlBeans.getContextTypeLoader() Hello, The getContextTypeLoader() almost seems perfect - it finds all of the schema type definitions available in the context ClassLoader. All I need to do is find out what all of the QNames are and I can't seem to find out how to do that given that all I know is that the results of scomp (xmltypes.jar) is in my classpath. I'm simply trying to build a tool to automatically register XmlBean type mapings with Axis. I just need acces to the SchemaTypeLoader SchemaTypes and I can't find out how to do that. I don't want the user to have to specify which class names to register - I just want to register them all when my SOAP service starts and be done with it. Any thoughts would be welcome. Thank you. -- Free replacement for Exchange and Outlook (Contacts and Calendar) http://www.ScheduleWorld.com/ WAP: http://www.ScheduleWorld.com/sw/WAPToday?id=4000&tz=EST WebDAV: http://www.ScheduleWorld.com/sw/webDAVDir/4000.ics VFREEBUSY: http://www.ScheduleWorld.com/sw/freebusy/4000.ifb --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]