It appears that autogenerated xmlns attributes cannot be removed. Attempting to use <?php $node->removeAttribute("xmlns"); ?> returns false.
DOMElement->removeAttribute()
(No version information available, might be only in CVS)
DOMElement->removeAttribute() — Removes attribute
Popis
class DOMElement {bool removeAttribute ( string $name )
}
Removes attribute named name from the element.
Seznam parametrů
- name
The name of the attribute.
Návratové hodnoty
Vrací TRUE při úspěchu, FALSE při selhání.
Errors/Exceptions
- DOM_NO_MODIFICATION_ALLOWED_ERR
Raised if the node is readonly.
Viz také
| DOMElement->hasAttribute() |
| DOMElement->getAttribute() |
| DOMElement->setAttribute() |
DOMElement->removeAttribute()
saltymeat at hotmail dot com
22-Feb-2007 06:32
22-Feb-2007 06:32
