in reply to Update an XML node value based on one of the attribute values.

Using XML::XSH2, a wrapper around XML::LibXML:
open file.xml ; for //*[name()='ReferenceId'][@referenceIDType='FXDD'] set text() 'New + value' ; save :b ;
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re: Update an XML node value based on one of the attribute values.
  • Download Code