return the entire tag using xml::Twig

irolvinna

New Member
How can I return the entire xml tag using xml::twig and save it to array:for example :\[code\]my @array=();my $twig = XML::Twig->new(twig_handlers => {'data'=> sub {push @array, $_->xml_string;}});\[/code\]This code return all the nested tags but without the tag itself and its properties is there an option to return the entire tag using xml::twig and save it to varaible ?
 
Back
Top