Cannot read <post_body> tag from a XML file
<p>I asked yersterday <a href="http://stackoverflow.com/questions/6571998/confussion-with-parsing-xml-file-in-java">this</a> question. Now I am having problem with the similar XML file. My problems that it reads all good, until "post_body". It does find it when tetsing in starElement, but cannot print the context of this tag.<br>
Why is that ? I also been adviced to print s in endDocument() but seems that doesnt work. Here is my XML file again and code:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;root&gt;
   &lt;data&gt;
      &lt;track clipid="1"&gt;
         &lt;url&gt;http://www.emp3world.com/to_download.php?id=33254&lt;/url&gt;
         &lt;http_method&gt;GET or POST&lt;/http_method&gt;
         &lt;post_body&gt;a=1&amp;b=2&amp;c=3&lt;/post_body&gt;
      &lt;/track&gt;
   &lt;/data&gt;
&lt;/root&gt;
</code></pre>

<p>Code:</p>

<pre><code>class MyHandler extends DefaultHandler
{
    String str = "";
    StringBuilder s = new StringBuilder();
    public void startElement(String namespaceURI, String sName, String qName, Attributes atts)
    {

        s.setLength(0);

        if(qName.equals("track"))
        {
            s.append("ID: ").append(atts.getValue("clipid")).append("\n");
        }
        if(qName.equals("url"))
        {
            s.append("URL: ");
        }
        if(qName.equals("http_method"))
        {
            s.append("Http method: ");
        }
        if(qName.equals("header"))
        {
            s.append("Header: ");
        }
        if(qName.equals("post_body"))
        {
            s.append("Post body: ");
        }
    }

    public void endElement(String uri, String localName, String qName)
    {
        System.out.println(s);
    }

    public void characters(char[] ch, int start, int length) throws SAXException {
        s.append(new String(ch, start, length));
    }
}
</code></pre>
