title: Does element order matter in web.xml?
body: <p>When i tried the following code in servlet project,</p>
  
  <pre><code>  &lt;servlet&gt;
     &lt;init-param&gt;
       &lt;param-name&gt;a&lt;/param-name&gt;
       &lt;param-value&gt;x&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;servlet-name&gt;Result&lt;/servlet-name&gt;
      &lt;servlet-class&gt;Result&lt;/servlet-class&gt;
    &lt;/servlet&gt;
  </code></pre>
  
  <p>it shows an error, but when I tried this,</p>
  
  <pre><code> &lt;servlet&gt;
      &lt;servlet-name&gt;Result&lt;/servlet-name&gt;
      &lt;servlet-class&gt;Result&lt;/servlet-class&gt;
      &lt;init-param&gt;
       &lt;param-name&gt;a&lt;/param-name&gt;
       &lt;param-value&gt;x&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;/servlet&gt;
  </code></pre>
  
  <p>there is no error.    Is there a predefined order?</p>