Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » How to get elemnts in a sequence ?
How to get elemnts in a sequence ? [message #59132] Tue, 19 April 2005 12:31 Go to next message
Eclipse UserFriend
Originally posted by: ediouf.genigraph.fr

Hi every body,

I'm very new with xsd, i'm parsing a xsd document and have problems about
getting elemnts in a sequence; i have read the javadoc but i have not
found a method to do this.

How to acceed to the element in the sequence ?
And how to get the content of xs:documentation tag ie : "Informations
décrivant une demande d'acte" ?

Thanks for your reply!

Here's a portion of my code :

<xs:complexType name="DemandeActeNaissanceType">
<xs:annotation>
<xs:documentation>Informations décrivant une demande
d'acte</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="DateDemande" type="xs:date"/>
<xs:element name="TypeActeNaissance"
type="TypeActeNaissanceType"/>
<xs:element name="NombreExemplaires">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="MotifDemande" type="MotifDemandeType"/>
<xs:element name="Demandeur" type="DemandeurType"/>
<xs:element name="Titulaire" type="IndividuType"/>
</xs:sequence>
</xs:complexType>
Re: How to get elemnts in a sequence ? [message #59157 is a reply to message #59132] Tue, 19 April 2005 12:32 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Using XSDModelGroup.getParticles() and then XSDParticle.getTerm() for
each particle will get you the element declarations (model groups and
wildcards) within the sequence. Using
XSDAnnotation.getUserInformation() will get you the list of
<xs:documentation> elements within an annotation.


elhadji wrote:

> Hi every body,
>
> I'm very new with xsd, i'm parsing a xsd document and have problems
> about getting elemnts in a sequence; i have read the javadoc but i
> have not found a method to do this.
> How to acceed to the element in the sequence ?
> And how to get the content of xs:documentation tag ie : "Informations
> décrivant une demande d'acte" ?
>
> Thanks for your reply!
>
> Here's a portion of my code :
>
> <xs:complexType name="DemandeActeNaissanceType">
> <xs:annotation>
> <xs:documentation>Informations décrivant une demande
> d'acte</xs:documentation>
> </xs:annotation>
> <xs:sequence>
> <xs:element name="DateDemande" type="xs:date"/>
> <xs:element name="TypeActeNaissance"
> type="TypeActeNaissanceType"/>
> <xs:element name="NombreExemplaires">
> <xs:simpleType>
> <xs:restriction base="xs:integer">
> <xs:minInclusive value="1"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="MotifDemande" type="MotifDemandeType"/>
> <xs:element name="Demandeur" type="DemandeurType"/>
> <xs:element name="Titulaire" type="IndividuType"/>
> </xs:sequence>
> </xs:complexType>
>
Re: How to get elemnts in a sequence ? [message #594727 is a reply to message #59132] Tue, 19 April 2005 12:32 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Using XSDModelGroup.getParticles() and then XSDParticle.getTerm() for
each particle will get you the element declarations (model groups and
wildcards) within the sequence. Using
XSDAnnotation.getUserInformation() will get you the list of
<xs:documentation> elements within an annotation.


elhadji wrote:

> Hi every body,
>
> I'm very new with xsd, i'm parsing a xsd document and have problems
> about getting elemnts in a sequence; i have read the javadoc but i
> have not found a method to do this.
> How to acceed to the element in the sequence ?
> And how to get the content of xs:documentation tag ie : "Informations
> décrivant une demande d'acte" ?
>
> Thanks for your reply!
>
> Here's a portion of my code :
>
> <xs:complexType name="DemandeActeNaissanceType">
> <xs:annotation>
> <xs:documentation>Informations décrivant une demande
> d'acte</xs:documentation>
> </xs:annotation>
> <xs:sequence>
> <xs:element name="DateDemande" type="xs:date"/>
> <xs:element name="TypeActeNaissance"
> type="TypeActeNaissanceType"/>
> <xs:element name="NombreExemplaires">
> <xs:simpleType>
> <xs:restriction base="xs:integer">
> <xs:minInclusive value="1"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> <xs:element name="MotifDemande" type="MotifDemandeType"/>
> <xs:element name="Demandeur" type="DemandeurType"/>
> <xs:element name="Titulaire" type="IndividuType"/>
> </xs:sequence>
> </xs:complexType>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:How to get elemnts in a sequence ?
Next Topic:How to test if a type is a base type ?
Goto Forum:
  


Current Time: Thu Apr 25 06:17:39 GMT 2024

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

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

Back to the top