阅读背景:

XML模式中的ref和type有什么区别?

来源:互联网 

Consider the following schema:

考虑以下模式:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<xs:schema xmlns:xs="https://www.w3.org/2001/XMLSchema">

    <xs:complexType name="Root">
        <xs:sequence>
            <xs:element ref="Child" />
            <xs:element name="Child2" type="Child" />
        </xs:sequence>
        <xs:attribute ref="Att" />
        <xs:attribute name="Att2" type="Att" />
    </xs:complexType>

    <xs:complexType name="Child">
        <xs:attribute ref="Att" />
    </xs:complexType>

    <xs:attribute name="Att" type="xs:integer" />

</xs:schema> 
<?xm



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: