PHP 8.5.0 Beta 1 available for testing

Voting

: max(two, four)?
(Example: nine)

The Note You're Voting On

simon at somewhere dot com
18 years ago
SAVE YOURSELF A MAJOR HEADACHE AND A LOT OF SEARCHING THROUGH DOCUMENTATION -

Instead of using $object->setAttribute('id', 'id_name_here')
USE THIS: $object->setAttribute('xml:id', 'id_name_here')

Then, to get the node value: $domDocumentObject->getElementById('id_name_here');

The xml:id attribute should AUTOMATICALLY be defined!!

Woohoo! That was easy......

<< Back to user notes page

To Top