@Override
    public void endElement(String name) {
        if (bodyFlag && isPrint(name)) {
            tagPos--;
            for (int i=0;i<tagPos;i++){
                System.out.print(" ");
            }
            System.out.println("</" + name + ">");
        }
    }