xsl-list
[Top] [All Lists]

Re: [xsl] Need XML grep-like tool for Linux that uses XPath expressions

2011-10-11 07:49:45
On 11/10/11 00:00, Lynn Murdock wrote:
Hi-

I need to run some complex searches on a directory containing
multiple XML files, and am looking for a command-line tool that will
take XPath expressions and will work in Unix/Linux terminal
applications. Does anyone on this list have suggestions for a good
tool?

lxgrep and lxprintf from the LTxml2 toolset at
http://www.ltg.ed.ac.uk/software/ltxml2

$  find /var/www/xml/doc/docs -type f -name '*.xml' -exec lxprintf -e
'articleinfo' '<doctitle>%s</doctitle>\n' 'descendant::title' {}
2>/dev/null \;
<doctitle>Student mailing lists sign-up application</doctitle>
<doctitle>How to avoid a Spam-filled Inbox</doctitle>
<doctitle>Web Site Owner's Guide</doctitle>
<doctitle>RSS Feeds</doctitle>
<doctitle>Tips on using Email effectively</doctitle>
$

///Peter

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--