[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Need XML grep-like tool for Linux that uses XPath

Subject: Re: Need XML grep-like tool for Linux that uses XPath expressions
From: Peter Flynn <pflynn@xxxxxx>
Date: Tue, 11 Oct 2011 13:49:51 +0100
Re:  Need XML grep-like tool for Linux that uses XPath
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.