Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » min/max Occurs
min/max Occurs [message #56097] Tue, 07 December 2004 23:56 Go to next message
Eclipse UserFriend
Originally posted by: gsauere.yahoo.com

How can I retrieve the value of min/max Occurs in the following example?

<schema xmlns="http://www.w3.org/2001/XMLSchema">
<element name="test1" fixed="string" minOccurs="1" maxOccurs="unbounded"
/>
<element name="test2" fixed="string" minOccurs="2" maxOccurs="unbounded"
/>
</schema>
Re: min/max Occurs [message #56125 is a reply to message #56097] Wed, 08 December 2004 01:26 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Guilherme,

You can't. It's not valid to specify these on a global element
declaration. You can specify it on a local element declaration, in
which case there will be an XSDParticle to hold that information.


Guilherme wrote:

>How can I retrieve the value of min/max Occurs in the following example?
>
><schema xmlns="http://www.w3.org/2001/XMLSchema">
> <element name="test1" fixed="string" minOccurs="1" maxOccurs="unbounded"
>/>
> <element name="test2" fixed="string" minOccurs="2" maxOccurs="unbounded"
>/>
></schema>
>
>
>
>
>
>
Re: min/max Occurs [message #593147 is a reply to message #56097] Wed, 08 December 2004 01:26 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26284
Registered: July 2009
Senior Member
Guilherme,

You can't. It's not valid to specify these on a global element
declaration. You can specify it on a local element declaration, in
which case there will be an XSDParticle to hold that information.


Guilherme wrote:

>How can I retrieve the value of min/max Occurs in the following example?
>
><schema xmlns="http://www.w3.org/2001/XMLSchema">
> <element name="test1" fixed="string" minOccurs="1" maxOccurs="unbounded"
>/>
> <element name="test2" fixed="string" minOccurs="2" maxOccurs="unbounded"
>/>
></schema>
>
>
>
>
>
>
Previous Topic:min/max Occurs
Next Topic:JAXB - compiling schema
Goto Forum:
  


Current Time: Sat Dec 20 09:56:53 GMT 2014

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

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