Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » get the minOccurs and maxOccurs of an ElementDeclaration
get the minOccurs and maxOccurs of an ElementDeclaration [message #1282] Tue, 01 October 2002 20:47 Go to next message
Craig Salter is currently offline Craig SalterFriend
Messages: 169
Registered: July 2009
Senior Member
I have hold of a XSDElementDeclaration and the
isElementDeclarationReference()
tells me that it is a reference. How do I get the minOccurs and
maxOccurs? Is there a simple way to walk up the tree to the XSDParticle?
Re: get the minOccurs and maxOccurs of an ElementDeclaration [message #1305 is a reply to message #1282] Wed, 02 October 2002 02:28 Go to previous messageGo to next message
Dave Spriet is currently offline Dave SprietFriend
Messages: 2
Registered: July 2009
Junior Member
Hello Craig,

You should be able to do
xsdElementDeclaration.getContainer() which will return you the object that
contains this XSDElementDeclaration. The container object of an element
reference is a XSDParticle.

Regards,
Dave Spriet
WebSphere MQ Integration Tooling

"Craig Salter" <csalter@ca.ibm.com> wrote in message
news:and1lb$gqb$1@rogue.oti.com...
> I have hold of a XSDElementDeclaration and the
> isElementDeclarationReference()
> tells me that it is a reference. How do I get the minOccurs and
> maxOccurs? Is there a simple way to walk up the tree to the XSDParticle?
>
Re: get the minOccurs and maxOccurs of an ElementDeclaration [message #3108 is a reply to message #1305] Thu, 03 October 2002 00:25 Go to previous message
Craig Salter is currently offline Craig SalterFriend
Messages: 169
Registered: July 2009
Senior Member
Thanks Dave that what I was looking for.

Dave Spriet wrote:

> Hello Craig,

> You should be able to do
> xsdElementDeclaration.getContainer() which will return you the object that
> contains this XSDElementDeclaration. The container object of an element
> reference is a XSDParticle.

> Regards,
> Dave Spriet
> WebSphere MQ Integration Tooling

> "Craig Salter" <csalter@ca.ibm.com> wrote in message
> news:and1lb$gqb$1@rogue.oti.com...
> > I have hold of a XSDElementDeclaration and the
> > isElementDeclarationReference()
> > tells me that it is a reference. How do I get the minOccurs and
> > maxOccurs? Is there a simple way to walk up the tree to the XSDParticle?
> >
Re: get the minOccurs and maxOccurs of an ElementDeclaration [message #562760 is a reply to message #1282] Wed, 02 October 2002 02:28 Go to previous message
Dave Spriet is currently offline Dave SprietFriend
Messages: 2
Registered: July 2009
Junior Member
Hello Craig,

You should be able to do
xsdElementDeclaration.getContainer() which will return you the object that
contains this XSDElementDeclaration. The container object of an element
reference is a XSDParticle.

Regards,
Dave Spriet
WebSphere MQ Integration Tooling

"Craig Salter" <csalter@ca.ibm.com> wrote in message
news:and1lb$gqb$1@rogue.oti.com...
> I have hold of a XSDElementDeclaration and the
> isElementDeclarationReference()
> tells me that it is a reference. How do I get the minOccurs and
> maxOccurs? Is there a simple way to walk up the tree to the XSDParticle?
>
Re: get the minOccurs and maxOccurs of an ElementDeclaration [message #562815 is a reply to message #1305] Thu, 03 October 2002 00:25 Go to previous message
Craig Salter is currently offline Craig SalterFriend
Messages: 169
Registered: July 2009
Senior Member
Thanks Dave that what I was looking for.

Dave Spriet wrote:

> Hello Craig,

> You should be able to do
> xsdElementDeclaration.getContainer() which will return you the object that
> contains this XSDElementDeclaration. The container object of an element
> reference is a XSDParticle.

> Regards,
> Dave Spriet
> WebSphere MQ Integration Tooling

> "Craig Salter" <csalter@ca.ibm.com> wrote in message
> news:and1lb$gqb$1@rogue.oti.com...
> > I have hold of a XSDElementDeclaration and the
> > isElementDeclarationReference()
> > tells me that it is a reference. How do I get the minOccurs and
> > maxOccurs? Is there a simple way to walk up the tree to the XSDParticle?
> >
Previous Topic:get the minOccurs and maxOccurs of an ElementDeclaration
Next Topic:finding the root
Goto Forum:
  


Current Time: Tue Apr 23 09:58:26 GMT 2024

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

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

Back to the top