xml文件<?xml version="1.0" encoding="iso-8859-1"?><employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="note.xsd">? ? <firstname></firstname></employee>xsd文件<?xml version="1.0"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> ? <xs:attributeGroup name="asd">? ? <xs:attribute name="siteId" type="xs:string" use="required"/>? ? <xs:attribute name="lastname" type="xs:string" use="required"/>? </xs:attributeGroup>? <xs:element name="employee">? ? <xs:complexType>? ? ? <xs:sequence>? ? ? ? ? <xs:element name="firstname" type="xs:string"/>? ? ? </xs:sequence>? ? </xs:complexType>? </xs:element>? <xs:element name="firstname">? ? <xs:complexType>? ? ? <xs:attributeGroup ref="asd"/>? ? </xs:complexType>? </xs:element></xs:schema>知道的請說一下,謝謝
請問一下在xml schema中,我想給firstname標簽限制屬性怎么限制
我要去幼兒園深造了
2017-11-20 17:01:20