_currentNode.addChild(element);
// Add all current namespaces to this element
for (Iterator i = _prefixes.entrySet().iterator(); i.hasNext(); ) {
Map.Entry me = (Map.Entry) i.next();
element.addNamespace(new Namespace((String)me.getKey(), (String) me.getValue()));
}
// Then add all attributes
if (atts != null && atts.getLength() > 0) {
for (int i = 0; i < atts.getLength(); i++) {