title: Does XML care about the order of elements?
body: <p>XML confuses me sometimes, but I'm trying to get this figured out. What the vendor is telling me doesn't make sense but again, XML and I don't get along :)</p>
  
  <p>I have some XML that I'm sending to a vendor's web service that is giving me random failures:</p>
  
  <pre><code>&lt;root&gt;
      &lt;Request&gt;
          &lt;Driver id="1" VehId="1"&gt;...&lt;/Driver&gt;
          &lt;Driver id="2" VehId="1"&gt;...&lt;/Driver&gt;
          &lt;Driver id="3" VehId="2"&gt;...&lt;/Driver&gt;
          &lt;Vehicle id="1"&gt;...&lt;/Vehicle&gt;
          &lt;Vehicle id="2"&gt;...&lt;/Vehicle&gt;
          &lt;Driver id="4" VehId="2"&gt;...&lt;/Driver&gt;
      &lt;/Request&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>There is no XSLT or XSD to compare against to see if my XML is valid.</p>
  
  <p>The vendor states that the XML is invalid because Driver #4 is in the wrong area. The XPath for Driver should be root/Request/Driver and Vehicle is root/Request/Vehicle. </p>
  
  <p>Is it common that XML parsers would force an element order, especially if there is no XSD to compare the XML to? The vendor's support is slow to get back with me, so I want to know what good common practice is.</p>
  
  <p><strong>Followup</strong></p>
  
  <p>I complained enough to our account rep about not being able to test this (and made it sound like they were just trying to get support money) that it turns out that the Developers have the XSD, but Support doesn't. So I had been talking to the wrong group *facepalm*</p>
  
  <p>I got the XSD, and it does enforce a specific order of elements. </p>
  
  <p>Now to fight them in regards to their own sample XML doesn't follow the schema, but at least now I have something to test against. </p>