I am hoping someone can assist in finding the best method to replace a node value using DOM in PHP.
An example XML would be, which is stored as data.xml: