|
hi,
I want to know how to order element or attribute?
This is
XML-Schema.
------------------------------------------------------ <xsd:element name="A"> <xsd:complexType> <xsd:sequence> <xsd:element name="AA" type="xsd:string"/> <xsd:element name="BB" type="xsd:string"/> <xsd:element ref="CC"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element
name="CC">
<xsd:complexType> <xsd:attribute name="aaa" type="xsd:string" /> <xsd:attribute name="bbb" type="xsd:string" /> <xsd:attribute name="ccc" type="xsd:string" /> <xsd:attribute name="ddd" type="xsd:string" /> </xsd:complexType> </xsd:element> ------------------------------------------------------- and there is two kind of xml.
1>xml
<A> <AA>AA</AA> <BB>BB</BB> <CC aaa=aaa" bbb="bbb" ccc="ccc" ddd="ddd"/> </A> 2>xml
<A> <BB>BB</BB> <AA>AA</AA> <CC bbb="bbb" ddd="ddd" aaa="aaa" ccc="ccc" /> </A> Uising Castor, both of xml with that schema work well.
Is it right? element or attribute order in schema does not matter to making xml? or only 1>xml is right??
please answer me....
thanks,
sophia |
