• 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic