Grep in XML file
Posted
by
nishant
on Stack Overflow
See other posts from Stack Overflow
or by nishant
Published on 2012-04-02T05:23:04Z
Indexed on
2012/04/02
5:30 UTC
Read the original article
Hit count: 198
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...
© Stack Overflow or respective owner