code: public XMLDocument endElements(String uri, String name) throws SAXException{
          QName qname = findEndElement();
          while(true){
              endElement(qname);
              if(qname.getNamespaceURI().equals(uri) && qname.getLocalPart().equals(name))
                  break;
          }
          return this;
      }
docs: /*-------------------------------------------------[ end-elements ]---------------------------------------------------