Expect nothing; be ready for anything. Samuri Chant If one morning I walked on top of the water across the Potomac River, the headline that afternoon would read "President Can't Swim." Lyndon B. Johnson What if the hokey-pokey IS what it's all about? If they give you ruled paper, write the other way. Juan Ramon Jiminez Banking establishments are more dangerous than standing armies. Thomas Jefferson #### use warnings; use strict; use Data::Dumper; use XML::LibXML; my $parser = XML::LibXML->new; my $doc = $parser->parse_file( 'practice.xml' ); my $xpath = '/quotelist/quotation[@id="q5"]/source/text()'; my $result = $doc->find( $xpath ); print Dumper $result->string_value; exit 0;