use XML::Rules; my $parser = XML::Rules->new( style => 'filter', rules => { article => sub { my ($tag,$attr) = @_; $attr->{_content} =~ s/EM/E/g; return $tag => $attr; } } ); $parser->filterfile( 'a.xml', 'b.xml');
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re: Search and replace in portion of xml file
by Jenda
in thread Search and replace in portion of xml file
by sandy1028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |