aspose file tools*
The moose likes Product and Other Certifications 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 » Certification » Product and Other Certifications
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
cyril vidal
Ranch Hand

Joined: Jul 02, 2003
Posts: 247
hi Rahul,
I don't know if I answer correctly to your question. An example:
correct version: minOccurs and maxOccurs appear just in local element definitions

Now incorrect version that will make the validation unsuccessfull:

Hope this helps,
Cyril.


SCJP 1.4, SCWCD, SCBCD, IBM XML, IBM Websphere 285, IBM Websphere 287
dhriti joshi
Ranch Hand

Joined: Aug 13, 2002
Posts: 82
what do u mean by local and global elements.
dhriti.
Andy Smith
Ranch Hand

Joined: Sep 28, 2003
Posts: 239
Any element just below the root element or u can say dirsct child of the root element is the global element rest all the local


Share Knowledge to gain it.
SCJP 2, SCWCD 2, SCDJWS, IBM 141 (In Progress), IBM 486 (Next)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: minOccurs, maxOccurs
 
Similar Threads
minOccurs,maxOccurs
does XMLSchema.xsd definition violate it's own definition?
XML Schema: Global Declaration
wsimport command error --Undefined symbol or complex type
WSDL2Java stub class receiving ArrayList instead of single object