how to rename DOM node?

54 views
Skip to first unread message

Spasmoid

unread,
Apr 26, 2007, 2:49:23 AM4/26/07
to Professional PHP Developers
I'm using PHP5's DOM extension and I am wondering if anyone knows of a
work-around to rename an existing element node without affecting it's
children.

The DOM3 spec has DOMDocument->renameNode(node,...) but PHP5 DOM
doesn't support that yet.

Rodrigo Souza

unread,
Apr 26, 2007, 7:18:07 AM4/26/07
to Professi...@googlegroups.com
http://docs.php.net/manual/en/function.dom-domdocument-renamenode.php
--
Sem mais para o momento,
Rodrigo Souza

--------------------------------------------------------------------------------
:: Rodrigo Souza dos Santos
:: Curitiba - Paraná - Brasil
:: rodrigosou...@gmail.com
--------------------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages