Re: edit an existing XML
"Paul Robert Marino" <[email protected]> Tue, 10 Sep 2013 08:02:50 -0400
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
--===============1847213209== Content-Type: multipart/alternative; boundary="Alternative_=_Boundary_=_1378814569" --Alternative_=_Boundary_=_1378814569 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable XML::Simple it the one every one starts with but its slow and not very effi= cient in ram. I suggest XML::Twig if you need to process XML quickly and ef= ficiently<br><br><span style=3D"font-family:Prelude, Verdana, san-serif;"><= br><br></span><span id=3D"signature"><div style=3D"font-family: arial, sans= -serif; font-size: 12px;color: #999999;">-- Sent from my HP Pre3</div><br><= /span><span style=3D"color:navy; font-family:Prelude, Verdana, san-serif; "= ><hr align=3D"left" style=3D"width:75%">On Sep 10, 2013 2:21, Lis Maria <= ;[email protected]> wrote: <br><br></span><div dir=3D"ltr">Hi,<div><b= r></div><div>I am new to perl, and the task i have is to read a config file= to get the values of certain keys and insert this value into an existing x= ml.</div><div><br></div><div>Example :</div><div> <br></div><div>Config.properties</div><div>----------------------------</di= v><div>key1=3Dvalue1</div><div><br></div><div><br></div><div>config.xml</di= v><div>-----------------------------</div><div><key1></key1></d= iv> <div><br></div><div><br></div><div>The perl script should be able to insert= the value 'value1' into the <key1> tag. Can someone suggest = the perl module which i can use for achieving the same.</div><div><br></div= > <div>Thanks,</div><div>Lis</div></div> --Alternative_=_Boundary_=_1378814569-- --===============1847213209== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs --===============1847213209==--