1

如果我希望元素 complexType 具有变量属性名称、计数和值,它会是什么样子?

<mtd:attributes icon="remove" security="D" variable1="F" variable2="D"/>

我试过了 :

        <xsd:element name="attributes">
            <xsd:complexType>
                <xsd:anyAttribute/>
            </xsd:complexType>
        </xsd:element>

但它不这样做。

4

2 回答 2

1

尝试添加processContents=skip

于 2013-02-14T10:34:00.210 回答
1

我终于做到了:

<xsd:anyAttribute processContents="skip"/>
于 2013-02-14T10:40:38.287 回答