title: White space inside XML/HTML tags
body: <p>I know how white space is handled in text nodes for XML and HTML, but I'm uncertain about white spaces inside tag elements themselves.  Obviously, white spaces are used inside tags to separate attributes, but is it valid to have white spaces after '&lt;' or before '>'?</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;  foo  &gt;
  &lt; /foo &gt;
  </code></pre>
  
  <p>Or even:</p>
  
  <pre><code>&lt;foo&gt;
  &lt; /  foo &gt;
  </code></pre>
  
  <p>Are these tags valid XML?  What about HTML, assuming they were actual HTML tag names?</p>