use XML::LibXML; my $parser = XML::LibXML->new(); my $xmldoc = $parser->parse_file( $filepath ); my $value = $xmldoc->findvalue( "/Build-Doc/Build[1]" ); # This returns " text.mak'n all" - which I DON'T want! # What I want to get is " text.mak" only ... # How do I manipulate "text.mak" and leave the rest of my # xml-structure untouched?