<?xml version="1.0" encoding="windows-1252"?>
<node id="942363" title="Re^2: HOw to extract data using json" created="2011-12-08 01:12:51" updated="2011-12-08 01:12:51">
<type id="11">
note</type>
<author id="929294">
Priti24</author>
<data>
<field name="doctext">
Thank you so much for your help.
But can we generalize it? i.e  
I have an array carrying 10 lines similar to $lines as above, i want to extract data from all the lines. can i use the array variable instead of direct value.</field>
<field name="root_node">
942354</field>
<field name="parent_node">
942357</field>
</data>
</node>
