@Override
    public void endElement(String uri, String localName, String qName)
            throws SAXException {
        try {
            if (inCharacters) {
                writer.write("\"\n");
                inCharacters = false;
            }
            level--;
            if ("http://www.w3.org/1999/xhtml" == uri
                    && "template".equals(localName)) {
                level--;
            }
        } catch (IOException e) {
            throw new SAXException(e);
        }
    }
@see org.xml.sax.ContentHandler#characters(char[], int, int)
src/nu/validator/servlet/TreeDumpContentHandler.java