Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » finding elements or attributes based on Types
finding elements or attributes based on Types [message #583013] Wed, 21 January 2004 16:16
mike is currently offline mikeFriend
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: Fri Apr 26 04:37:57 GMT 2024

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

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

Back to the top