make a ".htaccess" file which is something that controls pages server-side....
add the following line in your page:
AddType application/x-httpd-php .xml
this will make ANY xml document into PHP but if you don't want php in your xml, it's still ok since php is flexible and the page can work without actually having to write php in it.
Now use some str replace to get what you want working...
<?php
$xml = "<a>
<b c="test1" d="test2"/>
<b c="test3" d="test4"/>
</a>";
$find = array("test1","test2","test3","test4");
$xml = str_replace($find, "stuff", $xml);
echo $xml;
// output:
// <a>
// <b c="stuff" d="stuff"/>
// <b c="stuff" d="stuff"/>
// </a>
?>
I hope this is what you were looking for and I hope it helps...