PyDocs

Nav

Structured Markup Processing Tools

Element.setAttributeNode

xml.dom

method of Element
  • Element.setAttributeNode(newAttr)
Add a new attribute node to the element, replacing an existing attribute if necessary if the name attribute matches. If a replacement occurs, the old attribute node will be returned. If newAttr is already in use, InuseAttributeErr will be raised.
0 Examples
No examples for xml.dom/Element.setAttributeNode.
See Also
No see-alsos for xml.dom/Element.setAttributeNode
0 Notes
No notes for Element.setAttributeNode