Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PERL , how to Update an Existing XML

Status
Not open for further replies.

LalanKG

Programmer
Jan 25, 2005
23
0
0
IN
How can I append or modify an existing XML object ?

<emails>
<email>
<dte2send>21-12-2005 12:12:12<dte2send>
<to>sdfsdf@sdf.com</to>
<sub>some sub</sub>
<status>send<status>
</email>
<email>
<dte2send>21-04-2005 2:22:60<dte2send>
<to>asdf@sdf.com</to>
<sub>some sub</sub>
<status>pending<status>
</email>
<email>
<dte2send>21-1-2005 1:10:12<dte2send>
<to>asdf@sdf.com</to>
<sub>some sub</sub>
<status>send<status>
</email>

</emails>



Here I need to update the <status> tag after sending mail, ie I need to update the value of the status tag ..
How can i do this in PERL? Which module can I use?
Where can i find some eg or sample code to APPEND an existing XML objects ? Please help ..


Lalan
 
XML::Simple would be a good module to look into.

- Rieekan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top