aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "minOccurs,maxOccurs" Watch "minOccurs,maxOccurs" New topic
Author

minOccurs,maxOccurs

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: minOccurs,maxOccurs