Is it something you can do client side?
http://docs.jquery.com/DOM/Manipulation#remove.28_expr_.29
SimpleXML will remove HTML but I think if you wrap w/ CDATA and use
that instead of text might work?
- Jon
On May 27, 2007, at 9:56 PM, Dynamic Ink wrote:
I need to modify an XML tag name and am having quite a few setbacks
trying to do it with DOM.
Basically I am trying to turn something like this:
<div>Hello <i>Joe</i>, nice to meet you</div>
into this:
<p>Hello <i>Joe</i>, nice to meet you</p>
I could not figure out any way to change the readonly nodeName
property, but I was able to make a new node, insert before the old
node and then remove the old node. The problem is that I am
populating the value of the new node with the $oldNode->nodeValue
property which apparently only includes text, not child nodes, so I
end up with:
<p>Hello Joe, nice to meet you</p>
Anyone have any ideas how to get the entire node value including
any subnodes that may appear within? Or better yet, how can I just
modify an XML tag name and avoid this hassle altogether?
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php