Schame bug?!

admin

Administrator
Staff member
<!--file1: c:\test.xsd-------------------------------------------------------------><?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"><xsd:element name="thing1" type="xsd:string"/><xsd:element name="thing2" type="xsd:string"/><xsd:element name="thing3" type="xsd:string"/><xsd:attribute name="myAttribute" type="xsd:decimal"/><xsd:complexType name="myComplexType"><xsd:all ><xsd:element ref="thing1" minOccurs="1"/><xsd:element ref="thing2" minOccurs="0"/><xsd:element ref="thing3" minOccurs="0"/></xsd:all><xsd:attribute ref="myAttribute"/></xsd:complexType><xsd:element name="root" type="myComplexType"/></xsd:schema><!--file2 test.xml--------------------------------------------------------------><?xml version="1.0" encoding="GB2312"?><root myAttribute="11.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="C:\test.xsd"><thing2>fdsafasdfasd</thing2><thing1>fdfsdfasf</thing1><thing3>fjdkfjdf</thing3></root>use xmlspy to validate test.xmlreport error :this file is not valid :Mandatory element expected in '' after 'thing3':thing1who can help me ???
 
Back
Top