private Attributes convertAttrs(Iterator<Attribute> attributes) { AttributesImpl toReturn = new AttributesImpl(); while (attributes.hasNext()) { Attribute a = attributes.next(); toReturn.addAttribute(a.getName().getNamespaceURI(), a.getName().getLocalPart(), qnameToS(a.getName()), a.getDTDType(), a.getValue()); } return toReturn; }
private Attributes convertAttrs(Iterator<Attribute> attributes) { AttributesImpl toReturn = new AttributesImpl(); while (attributes.hasNext()) { Attribute a = attributes.next(); toReturn.addAttribute(a.getName().getNamespaceURI(), a.getName().getLocalPart(), qnameToS(a.getName()), a.getDTDType(), a.getValue()); } return toReturn; }
private void emitEE(EndElement ee) throws SAXException { handler.endElement(ee.getName().getNamespaceURI(), ee.getName().getLocalPart(), qnameToS(ee.getName())); @SuppressWarnings("unchecked") Iterator<Namespace> it = ee.getNamespaces(); while (it.hasNext()) emitNSGone(it.next()); }
private void emitEE(EndElement ee) throws SAXException { handler.endElement(ee.getName().getNamespaceURI(), ee.getName().getLocalPart(), qnameToS(ee.getName())); @SuppressWarnings("unchecked") Iterator<Namespace> it = ee.getNamespaces(); while (it.hasNext()) emitNSGone(it.next()); }
private void emitSE(StartElement se) throws SAXException { @SuppressWarnings("unchecked") Iterator<Attribute> aIter = se.getAttributes() ; handler.startElement(se.getName().getNamespaceURI(), se.getName().getLocalPart(), qnameToS(se.getName()), convertAttrs(aIter)); @SuppressWarnings("unchecked") Iterator<Namespace> it = se.getNamespaces(); while (it.hasNext()) emitNS(it.next()); }
private void emitSE(StartElement se) throws SAXException { @SuppressWarnings("unchecked") Iterator<Attribute> aIter = se.getAttributes() ; handler.startElement(se.getName().getNamespaceURI(), se.getName().getLocalPart(), qnameToS(se.getName()), convertAttrs(aIter)); @SuppressWarnings("unchecked") Iterator<Namespace> it = se.getNamespaces(); while (it.hasNext()) emitNS(it.next()); }