in reply to How do I get LibXML to replace attribute values?

I'd use XML::XSH2:
open file.xml ; for //remote/@name[.="korg"] set . "other" ;