Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » getContent
getContent [message #594948] Tue, 26 April 2005 06:32
Eclipse UserFriend
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: Sun Jul 13 08:53:20 EDT 2025

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

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

Back to the top