XML Schema / Validation Query - Missing Elements -
if have xml schema dictates element has default value, , have xml file following schema omits element still valid? i.e. if element missing validator ok element missing take default value defined in schema , xml valid? so maybe like: <xs:element name="test" type="xs:boolean" default="false"/> then xml file misses out 'example' element together, valid? the reason ask because i've seen many schemas elements using attribute: minoccurs="0" infers if elements missing still validate. question validate if minoccurs not specified there default value specified instead? thanks. minoccurs , default refer 2 different concepts. question needs more context answered completely. minoccurs refers number of times element can occur child of another. default refers string value (sometimes typed - e.g. here boolean). use of default on element invalid . here default attributes (from w3schools) default attribute...