in reply to Re: Get XML content using XML::Twig module
in thread Get XML content using XML::Twig module

Looks quite a bit like XML::Rules :-)

use strict; use warnings; use XML::Rules; XML::Rules->new(rules => { Sender => sub { print "sender: ", $_[1]->{_ +content}, "\n"; }, Receiver => sub { print "sender: ", $_[1]->{_content}, "\n"; }, FileType => sub { delete $_[1]->{_content}; print " file: ", (keys( +%{$_[1]}))[0], "\n"; return; }, # it would work without the following rules, but is more efficient w +ith them 'InitTAP,FatalRAP,ReTxTAP' => 'content', '_default' => '', })->parsefile( "fdata.xml");

Jenda
Enoch was right!
Enjoy the last years of Rome.