can some one please help me on getting xml data into shell scripting
here is my requirement.
I need to print CHILD value along with attribute value of CHILD and parent if the CHILD value is greater than 100
here is my data
<mydata>
<parent detail="school1">
<CHILD attribute="0">0</CHILD>
<CHILD attribute="1">1932</CHILD>
<CHILD attribute="2">0</CHILD>
<CHILD attribute="3">500</CHILD>
<CHILD attribute="4">0</CHILD>
<CHILD attribute="5">0</CHILD>
<CHILD attribute="6">7819</CHILD>
<CHILD attribute="7">0</CHILD>
<CHILD attribute="8">299</CHILD>
<CHILD attribute="9">0</CHILD>
</parent>
<parent detail="school2">
<CHILD attribute="0">1</CHILD>
<CHILD attribute="1">7000</CHILD>
<CHILD attribute="2">0</CHILD>
<CHILD attribute="3">0</CHILD>
<CHILD attribute="4">600</CHILD>
<CHILD attribute="5">0</CHILD>
<CHILD attribute="6">11674</CHILD>
<CHILD attribute="7">0</CHILD>
<CHILD attribute="8">489</CHILD>
<CHILD attribute="9">0</CHILD>
</parent>
</mydata>
No comments:
Post a Comment