Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Tomcat context.xml parsing using XML::SImple

by Jenda (Abbot)
on Nov 22, 2012 at 15:26 UTC ( #1005149=note: print w/ replies, xml ) Need Help??


in reply to Tomcat context.xml parsing using XML::SImple

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.


Comment on Re: Tomcat context.xml parsing using XML::SImple
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005149]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (17)
As of 2014-09-22 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls