@Override public void endElement(String namespaceURI, String localName, String qName) throws SAXException { if (usingParseLocationElements) { ParseLocationElement ple = (ParseLocationElement) currentElement; ple.elementEndTagEndLine = currentLine = locator.getLineNumber(); ple.elementEndTagEndColumn = currentColumn = locator.getColumnNumber(); } else if (addParseLocationAttributes) { AttributeParseLocation pp = ppStack.pop(); pp.setElementEndTagEndLine(currentLine = locator.getLineNumber()); pp.setElementEndTagEndColumn(currentColumn = locator.getColumnNumber()); currentElement.addAttribute(XMLConstants.PARSELOCATION_DECORATION_QNAME, pp.toString()); } super.endElement(namespaceURI, localName, qName); }