Hi,
In whichever event you want to overwrite the xml data, use
$record.Address.phoneno.value = "1234567"
or
xfa.datasets.data.Address.phoneno.value = "1234567" //we have to use .value to get the value of node, we generally use .rawValue to get values of objects // in the form, dont get confused with both of these
This if for xml of below format:
<root>
<Address>
<name> Prasad </name>
<phoneno>111111</phoneno>
<zipcode>55555</zipcode>
</Address>
</root>
Note: Ignore the first node in the xml while referencing it in your code
Regards,
kc