ArrayList<Attr> attributes = new ArrayList<Attr>();
for ( int j = 0; j <= mnm.getLength(); j ++ ) {
Attr attr = (Attr)mnm.item(j);
if ( attr != null && attr.getOwnerElement() != null && getPrefix( attr.getNodeValue() ) != null ) {
attributes.add((Attr)attr.cloneNode(false));
}
}
for ( int j = 0; j < attributes.size(); j ++ ) {
Attr tempAttr = attributes.get(j);
Attr attr = element.getAttributeNode(tempAttr.getName());