Search found 2 matches

by pdcbob
Wed May 05, 2010 5:55 pm
Forum: XML Schemas
Topic: XSD validation with minOccurs="1"
Replies: 2
Views: 6367

Re: XSD validation with minOccurs="1"

Thanks, Radu! I now understand the problem, and I will find a way to modify the XSD to make the elements actually required.
by pdcbob
Tue May 04, 2010 7:42 pm
Forum: XML Schemas
Topic: XSD validation with minOccurs="1"
Replies: 2
Views: 6367

XSD validation with minOccurs="1"

I have a problem validating an XML document against its XSD. Specifically, I have set minOccurs="1" for an element in the XSD. The element does not exist in the XML file. The XML file validates against the XSD without errors! How can this happen? Example code: XSD: <xs:schema attributeFormDefault="u...