title: Is a newline character invalid in XML?
body: <p>Based on what I found in the XML specification, following 3 characters are the only ones that are illegal:</p>
  
  <ol>
  <li>&amp; </li>
  <li>&lt; </li>
  <li>></li>
  </ol>
  
  <p>We are working with a vendor on a tool which does not seem to be able to process a newline character.</p>
  
  <p>e.g.</p>
  
  <pre><code>&lt;Comments&gt; This is line 1
  This is line 2
  &lt;/Comments&gt;
  </code></pre>
  
  <p>will produce an error in the tool and the root cause I am being given is that newline character is not allowed in XML. The specification does not clearly say anything about this.</p>
  
  <p>I am trying to understand if newline is indeed an invalid character in XML or if this could be the limitation of the tool.</p>