Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » finding elements or attributes based on Types
finding elements or attributes based on Types [message #583013] Wed, 21 January 2004 11:16
mike is currently offline mike
Messages: 35
Registered: July 2009
Member
Hi,
I'm trying to find out how to retrieve every elements or attributes that
are based on a global simpleTypeDefinition. I've tried with
findElementsUsingType but with no luck ;-(
For exemple, I'd like something that'd tell me that the simpleType
'atacharacType' is used in 'titi' (and others ...). 'titi' being an
attribute or an element.

<xs:simpleType name="atacharacType">
<xs:restriction base="xs:string">
<xs:pattern value="\d\d(-\d\d(-\d\d)?)?"/>
</xs:restriction>
</xs:simpleType>

<xs:element name="ata">
<xs:complexType>
<xs:sequence>
<xs:element name="titi" type="atacharacType" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>bla bla bla</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>

thanx,

--mike
Previous Topic:Creating XSDAnnotations
Next Topic:Creating XSDAnnotations
Goto Forum:
  


Current Time: Tue Jul 29 08:49:52 EDT 2014

Powered by FUDForum. Page generated in 0.09193 seconds