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

Your xpath query should be '//remote[@name="korg"]'. And use setAttribute() to change the value of the attribute;
my $query = '//remote[@name="korg"]'; $doc->findnodes($query)->shift()->setAttribute('name', 'other');