我是说能不能给name以及dname这种子标签设置类似于attribute那个标签
2020-06-12 17:44:22
<element name="employee" minOccurs="1" maxOccurs="9999">
<complexType>
<sequence>
<element name="name" type="string">
<attribute name="no1" type="integer" use="required"></attribute>
</element>
<element name="age">
<simpleType><!-- 简单类型约束 -->
<restriction base="integer"><!-- 限定 -->
<minInclusive value="18"></minInclusive>
<maxInclusive value="60"></maxInclusive>
</restriction>
</simpleType>
</element>
<element name="salary" type="integer"></element>
<element name="department">
<complexType>
<sequence>
<element name="dname" type="string"></element>
<element name="address" type="string"></element>
</sequence>
</complexType>
</element>
</sequence>
<attribute name="no" type="integer" use="required"></attribute>
</complexType>
</element>
2020-06-12 17:46:24
<element name="employee" minOccurs="1" maxOccurs="9999">
<complexType>
<sequence>
<element name="name" type="string">
<attribute name="no1" type="integer" use="required"></attribute>
</element>
<element name="age">
<simpleType><!-- 简单类型约束 -->
<restriction base="integer"><!-- 限定 -->
<minInclusive value="18"></minInclusive>
<maxInclusive value="60"></maxInclusive>
</restriction>
</simpleType>
</element>
<element name="salary" type="integer"></element>
<element name="department">
<complexType>
<sequence>
<element name="dname" type="string"></element>
<element name="address" type="string"></element>
</sequence>
</complexType>
</element>
</sequence>
<attribute name="no" type="integer" use="required"></attribute>
</complexType>
</element>
2020-06-12 17:46:25
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星