Hi,
I've written a function that is supposed to modify attribute values in an XML file. Due to extensive debugging, i know that the majority of the functions is working ok. It locates the specified element, and identifies the attribute... it then uses the DOM XML set_attribute() function to change that value. Like so
// Note: ATTRIBUTE_VALUE is a constant.
$pocket[$j]->set_attribute('name', ATTRIBUTE_VALUE);
$pocket is an array of DOMAttribute Objects.
My problem is that when i check the XML file after running the script it is not changed, even though a print_r($pocket); shows it as having being changed.
Anyone know anything about this?
TYIA