posted 15 years ago
Hi,
I got the error: it was in the XSD, while defining schema for empty elements. How do you define schema for an empty element with no attribute, e.g. <book/>
For an empty element "book" with an attribute "isbn" you can write:
<xs:element name="book">
<xs:complexContent>
<xsd:attribute name="isbn" type="isbnType"/>
</xs:complexContent>
</xs:element>
What about empty element with no attribute:
<xs:element name="book">
<xs:complexContent>
..........
</xs:complexContent>
</xs:element>
Thank and regards,
Amit Sanghai.