0
선택적 요소가있는 XML 스키마가 있습니다. 이 요소가 발생하면 빈 요소가 발생하지 않도록하고 싶습니다. XML 스키마에서 이것이 가능합니까?XML 스키마에서 비어 있지 않은 내용 요소를 강제로 만드는 방법
예 :
<xsd:complexType name="example">
<xsd:simpleContent>
<xsd:extension base="basetype>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
어떻게 이런 일이 발생하지 않도록 할 : 간단한 유형에 대해서만 작업
<xs:simpleType>
<xs:restriction base="baseType">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
이 과정의 :
<example />