I am trying to write the script which will read the value of each tag from xml file. I find some solutions which gives the value of tag passed to it but i m not aware of tag in xml file. So my requirement is like read the value of each tag in xml file.
In another solution below, the Dumper is printing tag and Value of xml for refernce passed to it. But i need only values for tags:
use XML::Parser;
open ($SW,'>out_xml.txt') or die ("died");
my $xmlfile = 'xml\TextRules_Boilerplate.xml';
$parser = new XML::Parser( Style => 'Tree' );
my $tree = $parser->parsefile( $xmlfile );
use Data::Dumper;
print $SW Dumper $tree;