xml.dom.Element.setAttributeNodeNS()

Element.setAttributeNodeNS(newAttr)

Add a new attribute node to the element, replacing an existing attribute if necessary if the namespaceURI and localName attributes match. If a replacement occurs, the old attribute node will be returned. If newAttr is already in use, InuseAttributeErr will be raised.

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.