
Beast
New User
Apr 2, 2009, 1:07 PM
Post #1 of 1
(164 views)
|
|
Writing back to an XML document
|
Can't Post
|
|
Hi everyone, new to the forums....and relatively new to Perl. I'm writing a script that is going to use an already existing XML document to keep track of a set variable (set in the XML document initially) for each entry. so....a mockup of the XML would look something like this:
<employees> <client> <name>name1</name> <port>80</port> <host>host1</host> <hold>0</hold> </client> <employees> what I want to be able to do, is as my perl script is checking each client, one by one.....to check the variable "hold" to see if it's anything but zero. If it is, I want it to add 1 to the value, until it's 12 (when it will reset to zero) . I'm hung up at being able to write to a specific place in the xml file. Any help would be greatly appreciated
|