@Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { TargetHandler targetHandler = getTargetHandler(uri); targetHandler.handleStartElement(uri, localName); for (int i = 0; i < attributes.getLength(); i++) { String attributeUri = attributes.getURI(i); String attributeName = attributes.getLocalName(i); String attributeValue = attributes.getValue(i); getTargetHandler(attributeUri).handleAttribute(attributeName, attributeValue); } }