(PHP 5, PHP 7, PHP 8)
DOMAttr represents an attribute in the DOMElement object.
$name
$value
$node
$exclusive
false
$withComments
$xpath
null
$nsPrefixes
$uri
$deep
$other
$options
$child
$namespace
$otherNode
$feature
$version
$prefix
The name of the attribute.
The element which contains the attribute or null.
Not implemented yet, always is null.
Not implemented yet, always is true.
true
The value of the attribute.
Note: Note, XML entities are expanded upon setting a value. Thus the & character has a special meaning. Setting value to itself will fail when value contains an &. To avoid entity expansion, use DOMElement::setAttribute() instead.
Note:
Note, XML entities are expanded upon setting a value. Thus the & character has a special meaning. Setting value to itself will fail when value contains an &. To avoid entity expansion, use DOMElement::setAttribute() instead.
&