title: Special characters in Text node not getting parsed by SAX's characters() method
body: <p>I'm making an android application in which I'm parsing an XML using SAX parser.</p>
  
  <p>In the XML there is tag:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;title&gt;Deals &amp;amp; Dealmakers: Technology, media and communications M&amp;amp;A &lt;/title&gt;
  </code></pre>
  
  <p>As you can see it contains some special charters like <code>&amp;amp;</code></p>
  
  <p>The issue is I'm using SAX's implicit method:</p>
  
  <pre class="lang-java prettyprint-override"><code>@Override
  public void characters(char[] ch, int start, int length) throws SAXException{}
  </code></pre>
  
  <p>Here, the parameter 'char[] ch' is supposed to fetch the entire line <code>Deals &amp;amp; Dealmakers: Technology, media and communications M&amp;amp;A</code>
  But it is only getting "Deals ".</p>
  
  <p>How can I solve this issue?</p>
  
  <p>One issue might be because of the way I'm passing the XML to the SAX parser. Do I need to change the encoding or format?</p>
  
  <p>Currently, I'm passing the XML as <code>InputStream</code> &amp; using the below code:</p>
  
  <pre class="lang-java prettyprint-override"><code>HttpResponse httpResponse = utils.sendRequestAndGetHTTPResponse(URL);
  if (httpResponse.getStatusLine().getStatusCode() == 200) {
      HttpEntity entity = httpResponse.getEntity();
      InputStream in = entity.getContent();
      parseResponse(in);
  }
  
  
  // Inside parseResponse method:
  try {
      SAXParserFactory spf = SAXParserFactory.newInstance();
      SAXParser sp = spf.newSAXParser();
      XMLReader xmlReader = sp.getXMLReader();
  
      MyHandler handler = new MyHandler();
      xmlReader.setContentHandler(handler);
      xmlReader.parse(new InputSource(in));
  } catch (Exception e) {
  }
  </code></pre>