
April 9th, 2012, 05:42 AM
|
|
Registered User
|
|
Join Date: Apr 2012
Posts: 2
Time spent in forums: 51 m 20 sec
Reputation Power: 0
|
|
How to Read (String Format) XML file using PERL Script
i am trying to read .xml file from perl script.
<ELMNAME><v1>one</v1><v2>two</v2><v3>three</v3><ELMNAME/>
(eg: `cd /home/modbus; grep "v1" test_30Mar2012.xml`)
using grep command, which gives xml file contents (except tag Element Name<v1>) as a string without any delimiter.
(eg: onetwothree)
help me to fetch the each Element Name and it's value of the xml file separately.
expected output:
v1=one
v2=two
v3=three
|