*
* @throws IOException Should an I/O error occur.
*/
private void flushAttributes(Stack<AttributeEvent> atts, String uri) throws IOException {
while (!atts.empty()) {
AttributeEvent att = atts.pop();
this.xml.openElement(uri, "attribute", false);
this.xml.attribute("name", att.getName());
if (att.getURI() != null) {
this.xml.attribute("ns-uri", att.getURI());
}
this.xml.attribute("value", att.getValue());
this.xml.closeElement();
}
}