my $t= XML::Twig->new(); $t->parsefile("new.xml"); my $root= $t->root; my @para= $root->children(); # get the root's children foreach my $para (@para) { print $para->text()."\n"; } #### 1 QWERTY D:/Book1.xls bata 2 PANAMA C:/test.doc vata