public Element getCurrentElement() throws SAXException {
    if (currentElement == null) {
      throw new SAXException(
        "Ill-formed XML document (multiple root elements detected)");
    }
    return currentElement;
  }
public Element getCurrentElement()