Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How to get the part of the xml from the server log

by murugu (Curate)
on Aug 06, 2010 at 03:40 UTC ( [id://853294]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-16 23:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found