1
location
要素がXMLに含まれている場合、location
の子要素(locality
、wkt
)のうちの少なくとも1つを指定するにはどうすればよいですか?XSD経由で少なくとも1つの子要素が存在することを確認するにはどうすればよいですか?
<xs:element name="location" nillable="true" minOccurs="0">
<xs:complexType>
<xs:group ref="cs:locationGroup"></xs:group>
</xs:complexType>
</xs:element>
locationGroup
の定義:
<xs:group name="locationGroup">
<xs:all>
<xs:element name="locality" minOccurs="0"/>
<xs:element name="wkt" minOccurs="0"/>
</xs:all>
</xs:group>
私のXSDのバージョンは1.0です。可能な子要素のような少数のため