title: Java parse xml file when node inner text is html
body: <p>Right now I'm using SAXParser with my own handler, it can parse all node values except for the one that has type="html"</p>
  
  <p>My characters function is like this:</p>
  
  <pre><code>public void characters(char ch[], int start, int length) throws SAXException {
          if(content){
          String tmp = new String(ch, start, length);
          System.out.println("Content : " + tmp);
          content = false;
          }
  </code></pre>
  
  <p>And that particular node has the following format, which my output always just give me a bunch of \n and nothing else.</p>
  
  <pre><code>   &lt;content type="html"&gt;
  
      &amp;lt;img alt="" src="http://cdn2.sbnation.com/entry_photo_images/8767829/stranger-bad-robot-screencap_large.png" /&amp;gt;
  
  
       &amp;lt;p&amp;gt;Bad Robot, the production company founded by geek culture hitmaker J.J. Abrams (&amp;lt;i&amp;gt;Lost&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;Fringe&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;Star Trek: Into Darkness&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;Alias&amp;lt;/i&amp;gt;,&amp;amp;nbsp;etc.), has released a&amp;amp;nbsp;&amp;lt;a href="http://youtu.be/FWaAZCaQXdo" target="_blank"&amp;gt;mysterious new trailer&amp;lt;/a&amp;gt; titled "Stranger." The creepy and inscrutable video spot, posted by the official Bad Robot Twitter account this afternoon, features a starry sky; a long-haired, rope-bound man wandering along a desolate monochromatic shore line; and your garden variety, horrifying stitched-mouth person coming into focus. "Men are erased and reborn," intones a narrator that sounds a little like Leonard Nimoy.&amp;lt;/p&amp;gt;
       &amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;
  
  
  
      &lt;/content&gt;
  </code></pre>