By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,680 Members | 1,868 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,680 IT Pros & Developers. It's quick & easy.

Tool for running XPath queries on Linux?

P: n/a
What is a good tool for running XPath queries on Linux? I have the O'Reilly
XPath book and I'm using XPath Visualizer on Windows and that seems to work
fine, but I'm looking for something on Linux.

I've tried Quanta. It seems to be able to run the xsltproc processor to do
XSLT transformations but it doesn't seem to cope with interactively typing
in XPath expressions.

(As a side note, what other tools are useful with XML on Linux and what are
those tools capabilities?)

Jul 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Scott Simpson (ss******@visionsolutions.com) wrote:
: What is a good tool for running XPath queries on Linux? I have the O'Reilly
: XPath book and I'm using XPath Visualizer on Windows and that seems to work
: fine, but I'm looking for something on Linux.

: I've tried Quanta. It seems to be able to run the xsltproc processor to do
: XSLT transformations but it doesn't seem to cope with interactively typing
: in XPath expressions.

: (As a side note, what other tools are useful with XML on Linux and what are
: those tools capabilities?)

perl -- XML::XPath -- includes a utility program called 'xpath'

It runs on linux, though I only have access to a windows version at the
moment so I cut/paste from that

C:\perl\site\lib\XML\XPath> xpath
Usage:
C:\perl\bin/xpath [filename] query

If no filename is given, supply XML on STDIN.
I think it has the same name when XML::XPath is installed on linux, you
might need to put it in your path.

It has an undocumented -p option, I think you type

xpath -p filename query1 query2 query3 (...etc...)

and that filters by query1, then reduces that using query2, etc.
--

This space not for rent.
Jul 20 '05 #2

P: n/a
Scott Simpson wrote:
What is a good tool for running XPath queries on Linux? I have the O'Reilly
XPath book and I'm using XPath Visualizer on Windows and that seems to work
fine, but I'm looking for something on Linux.

I've tried Quanta. It seems to be able to run the xsltproc processor to do
XSLT transformations but it doesn't seem to cope with interactively typing
in XPath expressions.

(As a side note, what other tools are useful with XML on Linux and what are
those tools capabilities?)


what about
<http://xmlstar.sourceforge.net/>

--
Volkm@r
Jul 20 '05 #3

P: n/a


Scott Simpson wrote:
What is a good tool for running XPath queries on Linux? I have the O'Reilly
XPath book and I'm using XPath Visualizer on Windows and that seems to work
fine, but I'm looking for something on Linux.
The author of XPath Visualizer for IE has also written one for the
Mozilla browser which should then probably work with Mozilla on Linux too.
I've tried Quanta. It seems to be able to run the xsltproc processor to do
XSLT transformations but it doesn't seem to cope with interactively typing
in XPath expressions.


jEdit is an editor that has an XML plugin that supports XPath and XSLT
1.0. jEdit requires Java 1.4 I think which is availabe on Linux.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #4

P: n/a
Scott Simpson wrote:
What is a good tool for running XPath queries on Linux? I have the
O'Reilly XPath book and I'm using XPath Visualizer on Windows and that
seems to work fine, but I'm looking for something on Linux.

I've tried Quanta. It seems to be able to run the xsltproc processor to do
XSLT transformations but it doesn't seem to cope with interactively typing
in XPath expressions.

(As a side note, what other tools are useful with XML on Linux and what
are those tools capabilities?)


xpathtester is good.

///Peter
--
sudo sh -c "cd /;/bin/rm -rf `which killall kill ps shutdown mount gdb` *
&;top"
Jul 20 '05 #5

P: n/a
> The author of XPath Visualizer for IE has also written one for the Mozilla
browser which should then probably work with Mozilla on Linux too.


Thanks, Martin,

Yes, although I have never used Linux, the XPath Visualizer should work with
Mozilla (and Firefox) under Linux, as it does under Windows.

Cheers,
Dimitre Novatchev.
Jul 20 '05 #6

P: n/a
> The author of XPath Visualizer for IE has also written one for the Mozilla
browser which should then probably work with Mozilla on Linux too.


Thanks, Martin,

Yes, although I have never used Linux, the XPath Visualizer should work with
Mozilla (and Firefox) under Linux, as it does under Windows.

Cheers,
Dimitre Novatchev.

Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.