<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Renaming a DOMNode in PHP</title>
	<atom:link href="http://matthewturland.com/2010/02/09/renaming-a-domnode-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://matthewturland.com/2010/02/09/renaming-a-domnode-in-php/</link>
	<description></description>
	<lastBuildDate>Sat, 24 Jul 2010 00:49:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Dave</title>
		<link>http://matthewturland.com/2010/02/09/renaming-a-domnode-in-php/comment-page-1/#comment-1008</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 02 Mar 2010 12:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://matthewturland.com/?p=218#comment-1008</guid>
		<description>Hi,

The last line was throwing Not Found exceptions for me until I switched out ownerDocument for parentNode - I&#039;m guessing this could depend on whether the node you&#039;re replacing is top level or not.

So, line 10: $oldNode-&gt;parentNode-&gt;replaceChild($newNode, $oldNode);

Now if only PHP would actually roll out some core extensions that fully implemented the things they said they were implementing. Getting pretty sick of it these days.

Cheers,

Dave</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>The last line was throwing Not Found exceptions for me until I switched out ownerDocument for parentNode &#8211; I&#8217;m guessing this could depend on whether the node you&#8217;re replacing is top level or not.</p>
<p>So, line 10: $oldNode-&gt;parentNode-&gt;replaceChild($newNode, $oldNode);</p>
<p>Now if only PHP would actually roll out some core extensions that fully implemented the things they said they were implementing. Getting pretty sick of it these days.</p>
<p>Cheers,</p>
<p>Dave</p>
]]></content:encoded>
	</item>
</channel>
</rss>
