@Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { // set the root element's prefix qualified name and namespace prefix if (getRootElementName() == null) { setRootElementName(qName); setLocalName(localName); setRootElementNamespaceUri(namespaceURI); } if(Constants.EMPTY_STRING.equals(localName)) { return; } elementCount++; if (elementCount > 1) { // we only want to process characters from the first text child; // if a subelement occurs, we will stop shouldReadChars = false; } }
@Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { // set the root element's prefix qualified name and namespace prefix if (getRootElementName() == null) { setRootElementName(qName); setLocalName(localName); setRootElementNamespaceUri(namespaceURI); } if(Constants.EMPTY_STRING.equals(localName)) { return; } elementCount++; if (elementCount > 1) { // we only want to process characters from the first text child; // if a subelement occurs, we will stop shouldReadChars = false; } }