title: XML Searching - which is fast, text within nodes or text as attribute value
body: <p>Don't know is it a right question or not, but of curiosity, I want to know that which will be searched fast. For Ex-</p>
  
  <pre><code>&lt;A&gt;
    &lt;Name&gt;John&lt;/Name&gt;
  &lt;/A&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;A&gt;
    &lt;Name n="John"/&gt;
  &lt;/A&gt;
  </code></pre>
  
  <p>I have stored millions of text as attribute value, though not enough large in character size. Above is just an example for better understanding the question. </p>
  
  <p>Now if using XML Databases, like BaseX, eXists, etc etc , I try to search or create and index of all names then which will be faster?</p>