my ($value) = $root->findnodes('/Settings[1]/Channels[1]/Channel[@Name="Ln"]/@Voltage '); $value->setValue($new_voltage);}