idx = attName.indexOf(':');
if (idx > 0) {
ns = element.getNamespaceURI(attName.substring(0, idx));
attName = attName.substring(idx + 1);
}
element.addAttribute(new Attribute(ns, attName, atts.getValue(i)));
}
}
// Set the namespace on this Element, if one is explicit or defaulted
if (prefix != null && prefix.length() > 0) {