8
<authentication password="turkey" partnerid="exam" />
我怎么可以声明在XML模式这个元素?
我有:
<xs:element name="authentication" type="auth_type" />
<xs:complexType name ="auth_type">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="password" type="xs:string" />
<xs:attribute name="partnerid" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
,但将允许元素有文本内容,会吗?我不想说......
我想XS:扩展名是允许元素具有属性... – Mirko 2012-01-11 13:07:30
@Mirko - 在您的示例中,您必须使用'xs:extension'来扩展'xs:simpleContent','xs:simpleContent'是允许文本在您的元素中的内容。 – 2012-01-11 15:10:11