in reply to How do I get LibXML to replace attribute values?
my $query = '//remote[@name="korg"]'; $doc->findnodes($query)->shift()->setAttribute('name', 'other'); [download]