title: How to pass a New Line Character in XML
body: <p>I have some data which I pass and save to my DB.</p>
  
  <p>I convert the new line character <code>'\n'</code> to <code>&lt;br&gt;</code> before passing to My DB.</p>
  
  <p>Now my database table column which accepts this string is in <code>XML</code> format and throws the following Error</p>
  
  <pre><code>XML parsing: line 1, character 25, well formed check: no '&lt;' in attribute value
  </code></pre>
  
  <p>So obviously this wont work. How can i replace this with a new new line Character that XML will recognise?</p>