title: when unmarshaling from a schema the order of a sequence matters in jaxb
body: <p>I have this schema:
      </p>
  
  <pre><code>&lt;xs:complexType name="foo"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element name="oneBar" type="xs:string" minOccurs="0"/&gt;
      &lt;xs:element name="twoBar" type="xs:string" minOccurs="0"/&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>When I try to unmarshal this</p>
  
  <pre><code>&lt;foo&gt;
    &lt;oneBar&gt;1&lt;/oneBar&gt;
    &lt;twoBar&gt;2&lt;/twoBar&gt;
  &lt;/foo&gt;
  </code></pre>
  
  <p>it works 
  but when I try to unmarshal this xml:</p>
  
  <pre><code>&lt;foo&gt;
     &lt;twoBar&gt;2&lt;/twoBar&gt;
     &lt;oneBar&gt;1&lt;/oneBar&gt;
  &lt;/foo&gt;
  </code></pre>
  
  <p>I get an excelption because it cares about the order
  If I try to unmarshal the same xml without using a schema it works in both cases
  Any ideas?</p>
  
  <p>As Strawberry pointed out if you replace the xs:sequence with sc:any order wont matter, does any of you know what annotation I need to put in my class so it will generate the xs:any schmea</p>
  
  <p>Found solution by creating the class from the xs:any schema 
  You just need to annotate your class with XmlType and set the prop order to be nothing, see:</p>
  
  <pre><code>@XmlRootElement
  @XmlType(name="foo",propOrder={})
  public class Foo {
      @XmlElement
      public String oneBar; 
      @XmlElement
      public String twoBar;
  } 
  </code></pre>