Help for this page
my $query = '//remote[@name="korg"]'; $doc->findnodes($query)->shift()->setAttribute('name', 'other');