S
Simon Vaillancourt
I've tried to find how to write a schema for this type of node
everywhere.
<Param name="FirstParam">ABCD</Param>
How do i arrange a complex type that contains an attribute and a text.
This :
<xs:complexType name="Param">
<xs:attribute name="name" />
</xs:complexType>
Result as :
<invalid char="13" code="cvc-complex-type.1.2" line="3086"
resource="file:///C:/WINNT/Profiles/svaillan/Desktop/XML
Schema/test.xml">element Param must be empty but is not</invalid>
This :
<xs:complexType name="Param">
<xs:all>
<xs:element name="text" type="xs:string" />
</xs:all>
<xs:attribute name="name" />
</xs:complexType>
Result as :
<invalid char="13" code="cvc-complex-type.1.2.3" line="3086"
resource="file:///C:/WINNT/Profiles/svaillan/Desktop/XML
Schema/test.xml">text not allowed: |ABCD|</invalid>
I just dont know where to add the unnamed <xs:element ... > tag.
Anyone can help me figure this out?
Thx
everywhere.
<Param name="FirstParam">ABCD</Param>
How do i arrange a complex type that contains an attribute and a text.
This :
<xs:complexType name="Param">
<xs:attribute name="name" />
</xs:complexType>
Result as :
<invalid char="13" code="cvc-complex-type.1.2" line="3086"
resource="file:///C:/WINNT/Profiles/svaillan/Desktop/XML
Schema/test.xml">element Param must be empty but is not</invalid>
This :
<xs:complexType name="Param">
<xs:all>
<xs:element name="text" type="xs:string" />
</xs:all>
<xs:attribute name="name" />
</xs:complexType>
Result as :
<invalid char="13" code="cvc-complex-type.1.2.3" line="3086"
resource="file:///C:/WINNT/Profiles/svaillan/Desktop/XML
Schema/test.xml">text not allowed: |ABCD|</invalid>
I just dont know where to add the unnamed <xs:element ... > tag.
Anyone can help me figure this out?
Thx