Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

minOccurs, maxOccurs

 
rahul dighe
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
cyril vidal
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
dhriti joshi
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what do u mean by local and global elements.
dhriti.
 
Andy Smith
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic