hi
 
I'm wondering about the element order in XML Schema.
 
last time,  you said element order can be contolled simply by using sequence,
 
but when I tried that it made me confused.
 
 
my Schema is
 
<xsd:element name="A">
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element name="B" type="xsd:string"/>
      <xsd:element name="C" type="xsd:string"/>
      <xsd:element name="D" type="xsd:string"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>
 
and my XML is
 
<A>
  <D>sun</D>
  <B>mother</B>
  <C>father</C>
</A>
when I tried to unmarshal my XML using my Schema, It was successful.
 
It means when the XML is unmarshaled, element order doesn't matter??
 
This is so important for my project...
 
 
thanks,
sophia

Reply via email to