title: return sequence type of a soap response
body: <p>In reference to </p>
  
  <blockquote>
    <p><a href="https://stackoverflow.com/questions/22169247/difference-between-and-root-node">Difference between / and /root-node</a></p>
  </blockquote>
  
  <p>i am understanding that root node is the same as document node and that the root element is the same as document element. am i understanding it correctly?  </p>
  
  <p>can you please confirm that in my sample soap response</p>
  
  <ol>
  <li><strong>S:Envelope</strong> is the root node AND the document node  </li>
  <li><strong>S:Envelope</strong> is also the root element AND the document element  </li>
  <li>will <strong>document-node()</strong> be the return sequence type of this soap response that i should use in my <em>XQuery</em> declare function signature for the soap request giving this soap response?</li>
  <li>or should it be something else like <strong>node()*, or item()* or element()*</strong></li>
  </ol>
  
  <p>thanks a lot<br>
  apaw    </p>
  
  <p>i have this soap response:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;S:Body&gt;
      &lt;ns2:searchResponse xmlns:ns2="ws.s.b.d.com"&gt;
        &lt;return&gt;
          ... snipped ...
          &lt;businessName&gt;GREEN NATURE WATER REFILLING STATION&lt;/businessName&gt;
          &lt;province&gt;PROVINCE AA&lt;/province&gt;
          &lt;referenceNumber&gt;12345678&lt;/referenceNumber&gt;
          ... snipped ...
          &lt;status&gt;Registered&lt;/status&gt;
        &lt;/return&gt;
        ... snipped a lot of &lt;return&gt; ... &lt;/return&gt; ...
        &lt;return&gt;
          ... snipped ...
          &lt;businessName&gt;129 GREEN AVENUE STORE&lt;/businessName&gt;
          &lt;province&gt;PROVINCE BB&lt;/province&gt;
          &lt;referenceNumber&gt;12345670&lt;/referenceNumber&gt;
          ... snipped ...
          &lt;status&gt;Registered&lt;/status&gt;
        &lt;/return&gt;
      &lt;/ns2:searchResponse&gt;
    &lt;/S:Body&gt;
  &lt;/S:Envelope&gt;
  </code></pre>