写了个schema为何验证xml通不过

faithful_czx 2009-05-26
  schema中相关部分:
<xsd:element maxOccurs="unbounded" minOccurs="0"
name="property">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>

xml内容:
  <properties>
<property name="title">"测试系统"</property>
  </properties>

验证之后报:

cvc-complex-type.2.1: Element 'property' must have no character or element information item [children], because the type's content type is empty.

请问各位这是什么问题,应该如何解决。
kkmike999 2013-02-24
<xsd:element maxOccurs="unbounded" minOccurs="0" name="property"> 
  <xsd:complexType>
    <xsd:simpleContent>
      <xsd:extension base="xsd:integer">
	<xsd:attribute name="name" type="xsd:string" /> 
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType> 
</xsd:element> 

 

Global site tag (gtag.js) - Google Analytics