anand_perl has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I am trying to modify a XML File using a perl script
I am trying to change the value of a XML tag in that file
The file is a follows
<root>
<test>
<name>file</name>
<href>file.txt</href>
</test>
<test>
<name>file1</name>
<href>file1.txt</href>
</test>
</root>
Now I want to modify the value of the "href" tag inside each "test" node.
For example the value of the "hef" tag in the first "test" node is file.txt.
I want its value to be modified to file.xml
Is this possible??..
I am using the XML::Parser and XML::Simpleobject modules to parse the XML Files
Can anyone help me on this
Thanks in advance....
Back to
Seekers of Perl Wisdom