Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » getContent
getContent [message #594948] Tue, 26 April 2005 10:32
Alex is currently offline 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
Previous Topic:getValue getEffectiveValue
Next Topic:Type derivation results in duplicate particles
Goto Forum:
  


Current Time: Thu Oct 30 16:45:28 GMT 2014

Powered by FUDForum. Page generated in 0.15970 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software