1
vote
2answers
436 views

Finding multiline CDATA text in a bunch of XML files (possibly using grep)

I have several thousand (well formed) XML files of the following template : <?xml version="1.0" ?> <queries> <statement name="foobar"> <body><![CDATA[ Several ...
3
votes
4answers
1k views

Search for and print only matched pattern

I have some huge xml text files. I need to write a script to find and print a specific tag only. I tried sed and grep but they both return the whole line. Using SunOS 5.x, so not all linux commands ...
15
votes
5answers
7k views

Grep tool for XML

I am looking for a good tool to perform grep-like operations on XML - for example, extract certain attributes only. Grep itself can't handle it - any DFA-equivalent tool can handle only non recursive ...