Have you taken a peek in the user mailing list archives? I think this same
(or at least real similar (how to get attributes)) question was answered on
the mailing list a few days ago.
The user list is more appropriate for these usage kind of questions.

-jacobd

On Tue, Mar 10, 2009 at 12:37 AM, anchorTan <tantingf...@163.com> wrote:

>
> i want to get the detail structure of each xs:element in the schema file,
> and i tried with the following codes in the xmlbeans2.0 api document:
>
> schemaList.addAll(Arrays.asList(schemaTypeSys.documentTypes()));
> schemaList.addAll(Arrays.asList(schemaTypeSys.attributeTypes()));
> schemaList.addAll(Arrays.asList(schemaTypeSys.globalTypes()));
> for (int i = 0; i < schemaList.size(); i++) {
> SchemaType sType = (SchemaType) schemaList.get(i);
> //System.out.println("sType
> name=="+sType.getName()+",issimpletype=="+sType.isSimpleType());
> chemaList.addAll(Arrays.asList(sType.getAnonymousTypes()));
> }
>
> and with the above codes, i can get get the shemaType's attribute
> information.but some elements such as:
> <xs:element name="test">
>  <xs:complexType>
>    <xs:attributeGroup ref="something"/>
>  </xs:complexType>
> </xs:element>
>
> i cannot get these elements' attribute information. somebody met this
> situations  please help me!
> --
> View this message in context:
> http://www.nabble.com/somebody-tell-me-how-to-parse-xsd-files-with-xmlbeans--tp22429276p22429276.html
> Sent from the Xml Beans - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@xmlbeans.apache.org
> For additional commands, e-mail: dev-h...@xmlbeans.apache.org
>
>

Reply via email to