Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes XML and Related Technologies and the fly likes minOccurs,maxOccurs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "minOccurs,maxOccurs" Watch "minOccurs,maxOccurs" New topic


rahul dighe
Ranch Hand

Joined: Apr 17, 2001
Posts: 44
The xfront xmlschema presentation has a statement
Note: minOccurs and maxOccurs can only
be used in nested (local) element declarations
i have doubts whether this statement is true. can anyone provide any example i see that i can define an global <element> with a minOccurs and maxOccurs and there is no issue with schema validation,
is there something else that i am missing here ?

<BR>Rahul Dighe
rahul dighe
Ranch Hand

Joined: Apr 17, 2001
Posts: 44
i found the answer apparently ..
the problem was that the editor showed it as a option when i was using context sensitive help but when i ran the validator it showed an error.
it does make sense
I agree. Here's the link:
subject: minOccurs,maxOccurs
It's not a secret anymore!