// Write attributes
Iterator attrIter = getAttributes();
while (attrIter.hasNext()) {
Attribute attr = (Attribute) attrIter.next();
writer.write(' ');
attr.writeAsEncodedUnicode(writer);
}
writer.write('>');
}
catch (IOException ioe) {
throw new XMLStreamException(ioe);