Xml cvc elt.1.a:找不到元素';的声明';
我的XSD:Xml cvc elt.1.a:找不到元素';的声明';,xml,xsd,Xml,Xsd,我的XSD: 我的XML: <?xml version="1.0" encoding="utf-8" ?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/" elementFormDefault="qualified" attributeFormDefault="unqualified" targetNamespace="http://tempur
我的XML:
<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/"
elementFormDefault="qualified" attributeFormDefault="unqualified" targetNamespace="http://tempuri.org/">
<xsd:simpleType name="Letter">
<xsd:restriction base="xsd:string">
<xsd:pattern value="^[A-Za-z]?$" />
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="Test" type="Letter" />
</xsd:schema>
A.
有什么想法吗
以下是我正在使用的网站:
您声明了类型为
字母的元素测试。XML应该是
<?xml version="1.0" encoding="utf-8"?>
<Letter>A</Letter>
A.
您声明了类型为字母的元素测试。XML应该是
<?xml version="1.0" encoding="utf-8"?>
<Letter>A</Letter>
A.