Skip to main content



      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 16:47 Go to next message
Eclipse UserFriend
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] Tue, 01 October 2002 22:28 Go to previous messageGo to next message
Eclipse UserFriend
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] Wed, 02 October 2002 20:25 Go to previous message
Eclipse UserFriend
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] Tue, 01 October 2002 22:28 Go to previous message
Eclipse UserFriend
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] Wed, 02 October 2002 20:25 Go to previous message
Eclipse UserFriend
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 Jun 03 00:47:32 EDT 2025

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

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

Back to the top