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: [email protected]
For additional commands, e-mail: [email protected]