public void endElement(String uri, String localName, String qName) throws SAXException { processText(false); tagName.uri = uri; tagName.local = localName; tagName.qname = qName; next.endElement(tagName); }
public void startElement(String uri, String local, String qname, Attributes atts) throws SAXException { // work gracefully with misconfigured parsers that don't support namespaces if (uri == null || uri.length() == 0) uri = ""; if (local == null || local.length() == 0) local = qname; if (qname == null || qname.length() == 0) qname = local; boolean ignorable = true; StructureLoader sl; // not null only if element content is processed (StructureLoader is used) // ugly if ((sl = this.context.getStructureLoader()) != null) { ignorable = ((ClassBeanInfoImpl) sl.getBeanInfo()).hasElementOnlyContentModel(); } processText(ignorable); tagName.uri = uri; tagName.local = local; tagName.qname = qname; tagName.atts = atts; next.startElement(tagName); }