在我们的项目中,我发现了这片xsd。我真的很困惑元素AbstractItems中的有效值是多少
XSD:
<xs:element name="ListOfItems">
<xs:complexType>
<xs:sequence>
<xs:element ref="AbstractItems" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AbstractItems" abstract="true"/>
生成的XML Agains wsdl看起来像:
<urn1:ListOfItems>
<!--Optional:-->
<urn1:Abstractitems>?</urn1:Abstractitems>
</urn1:ListOfItems>
从W3School 1
摘要:指定是否可以在实例文档中使用该元素。True表示该元素不能出现在实例文档中。取而代之的是,其替换组属性包含此元素的限定名称(QName)的另一个元素必须出现在该元素的位置。默认为假
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句