use XML::Rules; my $parser = XML::Rules->new( style => 'filter', rules => { Resource => sub {}, } ); $parser->filter(\*DATA); __DATA__ <root> <b>dgfdg</b> <Resource>delete</Resource> <c>ffgdfg<Resource>ddd</Resource>ddddd</c> </root>
See the docs if you want to filter a file and not a filehandle and write the result elsewhere than STDOUT.
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re: Tomcat context.xml parsing using XML::SImple
by Jenda
in thread Tomcat context.xml parsing using XML::SImple
by jagadish1982
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |