Yes, but only if the SchemaType in question is anonymous. If that's the case, use SchemaType.getContainerField() and then SchemaField.getName() (also keep in mind that the type may also be the type of an attribute).
If SchemaType.getContainerField() returns null, it means that the type is global and in that case you can't get the tag name because there may be multiple elements with that type. Radu On Wed, 2007-05-09 at 01:25 -0700, Anton Melumad wrote: > Hi, > > Is it possible to find out the element tag name from a given > SchemaType object? > > Code like <myXMLBeansType>.type.getName() returns null. > > If SchemaType cannot be used how could I get the tag name with just > the compiled schema, i.e. I am not creating any XMLbeans instances. > > Thanks, > Anton > > > > ______________________________________________________________________ > Yahoo! Answers - Got a question? Someone out there knows the answer. > Try it now. Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

