Hi all,
I am having an issue with xsd schema. I have a following schema defined:
<xs:element name="nodes" type="nodesRootType" />
<xs:complexType name="nodesRootType">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="node" type="nodeType" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="nodeType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="node" type="nodeType" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required" />
</xs:complexType>
and I am testing it on following xml:
<label name="Label_6" >
<label name="Label_7" />
</label>
<label name="Label_8" />
The error I am getting is :
cvc-complex-type.2.4.a: Invalid content
was found starting with element 'node'. One of '{node}' is expected.
What am I missign here. Any help is hightly appreciated.
Best, Jozef