title: How to fix new line error when parse xml
body: <p>I have XML  file with data. I am use FasterXML to parse it:</p>
  
  <pre><code>xmlMapper.readValue
  </code></pre>
  
  <p>And when my file has a format : </p>
  
  <pre><code>&lt;w&gt;
      &lt;t name="test"/&gt;
  &lt;/w&gt;
  </code></pre>
  
  <p>When i parse this file all work. If i use void tag t, ex. when my file has a format:</p>
  
  <pre><code>&lt;w&gt;&lt;/w&gt;
  </code></pre>
  
  <p>All work. But if i have format:</p>
  
  <pre><code>&lt;w&gt;
  &lt;/w&gt;
  </code></pre>
  
  <p>I get an error. I want both options to work. How to fix it? </p>