I am trying same approach to update the node value but XML is never getting updated. I don't get any errors also. Have tried almost all options:(Need help!!!
$queryResult = $xpath->query("//USER[@EMAIL_ID='$dbEmail']");
foreach($queryResult as $result)
{
foreach ($result->getElementsByTagName('NAME') as $tempName) {
$tempName->nodeValue = "changed";
}
}