Grep in XML file
- by nishant
I have to find some patters from a XML file, but i am unable to do it.
<field>
<uniqueid>account
</uniqueod>
<tableid>afs</tableid>
</field>
<field>
<uniqueid>address</uniqueod>
<tableid>afs</tableid>
</field>
what i have to do is to search the entries between these two fields and redirect them to a file.txt.and output should be such that
uniqueid tableid
uniqueid tableid
i.e. for each uniqueid tableid should be printed along with it.
The entries can be different or same.
Guys help me out...