title: org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup
body: <p>I'm doing it in Java XML Parser, then I got this error when parsing an xml file...</p>
  
  <blockquote>
    <p>[Fatal Error] jira.xml:192:64: The content of elements must consist of well-formed character data or markup.
    org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown
    Source)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown
    Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
          at com.icomteq.ReadXMLFile.main(ReadXMLFile.java:20)</p>
  </blockquote>
  
  <p>Any clue what could be the problem? Thank you.</p>
  
  <p><strong>Here is the code used</strong> ->
  <a href="http://s29.postimg.org/tjbzvsn3b/xmlreader.jpg" rel="noreferrer">http://s29.postimg.org/tjbzvsn3b/xmlreader.jpg</a></p>
  
  <p><strong>Here is my jira.xml</strong> -></p>
  
  <pre><code>&lt;?xml version="1.0" ?&gt;
  &lt;DATA_RECORD&gt;
  &lt;DESCRIPTION&gt;
  &amp;lt;&lt; inside &amp;amp;&amp; the description tag &amp;lt;&lt;
  &lt;/DESCRIPTION&gt;
  &lt;/DATA_RECORD&gt;
  </code></pre>
  
  <p><strong>Temporary solution</strong> ->
  I figured out that XML Norms <code>&lt;</code> should not be in the xml, so I will use <code>contents.toString().replaceAll("&amp;lt;&lt;", "&amp;lt;").replaceAll("&amp;amp;&amp;", "&amp;amp;")</code></p>