检查provider.xsd文件语法
建议你用xsl来格式化xml

解决方案 »

  1.   

    如果有错的话,帮我看看XSD文件错在哪 ?我实在是找不出来
      

  2.   

    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="ID">
    <xs:complexType mixed="true">
    <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element ref="UNITPRICE"/>
    </xs:choice>
    <xs:attribute name="PRODUCTNAME" type="xs:string" use="required"/>
    </xs:complexType>
    </xs:element>
    <xs:element name="PRODUCT">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="ID"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="UNITPRICE" type="xs:string"/>
    </xs:schema>PS: type="xsd:string" 
    BTW: ie 可以这样直接验证吗?没弄过