3
元素定义自封闭的XML元素我想定义:我怎样才能在一个XML Schema
<feature_ref id="0"/>
代码中,我把我的XSD文件:
<xs:attribute name="id" type="xs:integer"/>
<xs:element name="feature_ref" type="xs:string">
<xs:complexType>
<xs:attribute ref="id"/>
</xs:complexType>
</xs:element>
是否有办法我可以在我的XSD中指定此元素应该自闭合?