Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 ( #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(;;);


Comment on Re: How to get the part of the xml from the server log
Download Code
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
Node Status?
node history
Node Type: note [id://853294]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2014-10-26 00:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (149 votes), past polls