Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 User
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 User
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 Merks
Messages: 26125
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.
Previous Topic:How to traverse sequence / element within ComplexType
Next Topic:HexBinary Type Validation bug
Goto Forum:
  


Current Time: Mon Oct 20 11:26:53 GMT 2014

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

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