exeTrix, thanks for the reply. I like your algorithm MUCH better. Nice And Clean! Unfortunately, I get the same result. I like simpleXML and use it to output xml to the browser window, however, when I need to manipulate the xml, I'm forced in to domdocument. As you already know, domdocument isn't well documented... or widely used.
Here is potentially a clue to the problem, preservewhitespace=false is only removing white space when deleting parent nodes (blog) at the beginning or at the end of the XML. But never when the nodes are inbetween the first or last parent. And to your point, it seems like the there are two sets of objects being manipulated when only $tempxml should be the one processed.
Final comment, I've tried hard coding $pid and also assigning it from form input, I'm pretty sure $pid is not the issue. I think this may be a bug with the DOMDocument class. Thanks again for the assist!