Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » How to traverse sequence / element within ComplexType
How to traverse sequence / element within ComplexType [message #26185] Tue, 05 August 2003 17:30 Go to next message
Eclipse UserFriend
Originally posted by: skapur.csc.com

I am not able figure out how to traverse sequence and elements defined
within complex type.
Re: How to traverse sequence / element within ComplexType [message #26223 is a reply to message #26185] Wed, 06 August 2003 11:36 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Sarit,

I assume that declaring your inability to figure this out is your indirect
way of asking a question...

The result of XSDComplexTypeDefinition.getContentType may be either an
XSDSimpleTypeDefinition or an XSDParticle, depending on whether the
content type is simple or complex. The result of XSDParticle.getTerm may
be either an XSDModelGroup, an XSDElementDeclaration, or an XSDWildcard.
The result of XSDModelGroup.getParticles is a list of XSDParticles. I
think that's all you need to know to traverse the content type.


Sarit wrote:

> I am not able figure out how to traverse sequence and elements defined
> within complex type.
Re: How to traverse sequence / element within ComplexType [message #575715 is a reply to message #26185] Wed, 06 August 2003 11:36 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Sarit,

I assume that declaring your inability to figure this out is your indirect
way of asking a question...

The result of XSDComplexTypeDefinition.getContentType may be either an
XSDSimpleTypeDefinition or an XSDParticle, depending on whether the
content type is simple or complex. The result of XSDParticle.getTerm may
be either an XSDModelGroup, an XSDElementDeclaration, or an XSDWildcard.
The result of XSDModelGroup.getParticles is a list of XSDParticles. I
think that's all you need to know to traverse the content type.


Sarit wrote:

> I am not able figure out how to traverse sequence and elements defined
> within complex type.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:How to traverse sequence / element within ComplexType
Next Topic:HexBinary Type Validation bug
Goto Forum:
  


Current Time: Wed Apr 24 22:17:51 GMT 2024

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

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

Back to the top