tempAttr.setOMNamespace(new NamespaceImpl(namespaceURI, DOMUtil .getPrefix(qualifiedName))); tempAttr.setAttributeValue(value); this.attributes.setNamedItem(tempAttr); return tempAttr; if (attributeNode != null) { AttrImpl tempAttr = ((AttrImpl) attributeNode); tempAttr.setAttributeValue(value); this.attributes.setNamedItem(tempAttr); return tempAttr;