Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Schema Query

 
Sameer Amte
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can the minOccurs value be greater than 1 if
the maxOccurs is not specified???
As per the XML schema primer, minOccurs should
be 0 or 1 if maxOccurs is not specified.
However, when I tried this in XML spy, it
validated successfully.
Example:
<xsd:element name="test" type="xsd:string"
minOccurs="2"/>
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use XSV or IBM Schema quality checker or topologi Schematron for validating schema!.
 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It even happened to me with XSV. It doesn't complain.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!