(PHP 5, PHP 7, PHP 8)
DOMAttr representa un atributo en el objeto DOMElement.
$exclusive
= false
,$withComments
= false
,$xpath
= null
,$nsPrefixes
= null
El nombre del atributo.
El elemento que contiene el atributo o null
.
Aún no implementado, siempre vale null
.
Aún no implementado, siempre vale null
.
El valor del atributo.
Nota:
Tenga en cuenta que las entidades XML se expanden cuando se define un valor. Por lo tanto, el carácter
&
tiene un significado especial. Establecer valor a sí mismo fallará cuando valor contiene un&
. Para evitar la expansión de entidades, utilice en su lugar DOMElement::setAttribute().