Try SaleType.schemaType for that information On Dec 27, 2007 4:34 PM, lyassa <[EMAIL PROTECTED]> wrote: > > Are there any methods in the generated Java classes to get the attributes of > the schema that generated the code? > > E.g. given the xsd snippet below > > <xs:sequence> > <xs:element type="urn:SaleType" name="Sale" maxOccurs="unbounded" > minOccurs="0" > xmlns:urn="urn:kssg.com:PS3"/> > </xs:sequence> > > > Now, the following Java code: > > SaleType sale = SaleType.Factory.newInstance(); > System.out.println( sale.type.getShortJavaName()); > > results in: SaleType > > > Are there any methods that will give me back the value assigned to > attributes name, maxOccurs and minOccurs? I am particularly interested in > the "name" attribute. > > Thanks in advance for your answers. > -- > View this message in context: > http://www.nabble.com/Methods-to-query-the-xsd-attributes--tp14520676p14520676.html > Sent from the Xml Beans - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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]