Hi,
I'm using the libxml2 tree based API with a W3C Schema. When writing
elements to the document, libxml2 is not honoring the order of
elements as defined in the schema. Is this a bug or am I doing
something incorrectly?
My XML document refers to the Schema as follows:
<?xml version="1.0" encoding="UTF-8"?>
<Domain xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="Domain.xsd">
My schema has a complex type defined as follows:
<xsd:complexType name="domain_type">
<xsd:sequence>
<xsd:element name="a" type="a_type" minOccurs="0"
maxOccurs="unbounded"/>
<xsd:element name="b" type="b_type" minOccurs="0"
maxOccurs="unbounded"/>
<xsd:element name="c" type="c_type" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
When the document is written out to a file, the elements do not follow
the defined sequence a,b,c, producing an invalid document.
Thanks,
Waye
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml