Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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
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
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 having an uproarious good time at the Monastery: (9)
As of 2015-07-29 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls