Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
There's more than one way to do things
 
PerlMonks  

Re: parse Tomcat XML configuration files

by fauria (Deacon)
on Mar 01, 2005 at 20:02 UTC ( [id://435670]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to parse Tomcat XML configuration files

You can use XML::Simple and change the hashref.

use XML::Simple; use Data::Dumper; my $tomcat_file = '/var/tomcat4/conf/server.xml'; my $tomcat_conf = XMLin($tomcat_file) or die "Error reading config: $! +"; print Dumper $tomcat_conf; #Modify hashref $tomcat_conf my $modified_xml = XMLout($tomcat_conf, NoAttr => 1); print Dumper $modified_conf;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://435670]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.