I have the following element in my XML
<xs:MigrationUpgradeRequisitesSection ovf:required="false">
<Info>Files necessary for migration-based upgrade.</Info>
<xs:Requisite xs:purpose="requirements" ovf:fileRef="xxxxx"/>
</xs:MigrationUpgradeRequisitesSection>
If the ovf:required=false
, I want to allow the element without doing any validation. Otherwise it should be validated.
How to write xml schema for that? My xml version is 1.0