L
Louise
I've looked thru the newsgroup and read a lot and I think this is legal
(see code snippet below - type referencing itself), but my validation
is failing when it gets to the first nested element (<task>).
<xs:complexType name="taskType">
<xs:sequence>
<xs:element name="tree_resources" type="tree_resourcesType"/>
<xs:sequence>
<xs:element name="task" type="taskType" minOccurs="0"/>
</xs:sequence>
</xs:sequence>
<xs:attribute ref="name"/>
<xs:attribute ref="id"/>
<xs:attribute ref="parent_id"/>
<xs:attribute ref="startdt"/>
<xs:attribute ref="enddt"/>
</xs:complexType>
Any thoughts?
I'm a newbie... so help is appreciated.
Thanks,
L
(see code snippet below - type referencing itself), but my validation
is failing when it gets to the first nested element (<task>).
<xs:complexType name="taskType">
<xs:sequence>
<xs:element name="tree_resources" type="tree_resourcesType"/>
<xs:sequence>
<xs:element name="task" type="taskType" minOccurs="0"/>
</xs:sequence>
</xs:sequence>
<xs:attribute ref="name"/>
<xs:attribute ref="id"/>
<xs:attribute ref="parent_id"/>
<xs:attribute ref="startdt"/>
<xs:attribute ref="enddt"/>
</xs:complexType>
Any thoughts?
I'm a newbie... so help is appreciated.
Thanks,
L