Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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(;;);

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?
Discipulus desease the question..
[shmem]: Discipulus: war/peace is a question of fuel gauge position...
[Discipulus]: yes i saw your cell brother..
[Discipulus]: but now fuel is cheap and they still make some war.
[Discipulus]: capitalism is able to go to war by cycle, even.
[shmem]: some? are you jokin' ?

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2017-04-29 21:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (534 votes). Check out past polls.