in reply to How to get the part of the xml from the server log

you can use XML::Twig. I am just giving you a skeleton of the code you require.

use XML::Twig; my $twig= XML::Twig->new( twig_handlers => { request => \&request }, ); $twig->parsefile( 'server.xml'); sub request { # some actions here }

Regards,
Murugesan Kandasamy
use perl for(;;);

Replies are listed 'Best First'.
Re^2: How to get the part of the xml from the server log
by aquarium (Curate) on Aug 06, 2010 at 05:20 UTC
    Been pondering the ease of use of the xml modules..which take quite a bit of getting used to.
    I think that for simple node + children extraction it would be easier to use xslt?
    the hardest line to type correctly is: stty erase ^H