getContent [message #594948] |
Tue, 26 April 2005 10:32 |
Alex Messages: 65 Registered: July 2009 |
Member |
|
|
Hi,
I 've got a little problem.
I want to extract the simple type includes in the <xs:attribute>.
I manage to extract the name and the use of the attribute like this :
XSDAttributeUse attribute = (XSDAttributeUse) attributeList.get(i);
XSDAttributeUseCategory attUse = attribute.getUse();
String nameAttribut = attribute.getAttributeDeclaration().getName();
Here is my code :
<xs:attribute name="Etat" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Connu"/>
<xs:enumeration value="Inconnu"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
I think using the function attribute.getContent(); But I can't extract the
value!!!
can somebody help me?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.03116 seconds