Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » min/max Occurs
min/max Occurs [message #56097] Tue, 07 December 2004 18: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] Tue, 07 December 2004 20: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] Tue, 07 December 2004 20:26 Go to previous message
Eclipse UserFriend
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: Thu May 08 18:33:08 EDT 2025

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

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

Back to the top