472,378 Members | 1,667 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,378 software developers and data experts.

Tool for running XPath queries on Linux?

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
6 8192
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
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


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
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
> 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
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dirk Segelhorst | last post by:
Hi, I am looking for an efficient XML grep tool (similar to UNIX grep) for XPath search in big XML documents. The tools I found are not what I actually need: - xmlgrep...
2
by: Alex | last post by:
Subject: Looking for an XML (database-based) Query Reporting Tool/advice First off, let me apologize if this thread is somewhat off topic... PLEASE REPLY TO: xml@solex-bi.com I am looking...
10
by: Michael C# | last post by:
OK, here's the deal. I have a small XML file that represents a small database table. I load it into a System.XML.XMLDocument. So far so good. I run an XPath query against it to retrieve all the...
0
by: Ken Arway | last post by:
GotDotNet has just posted my XSL/XPath tool, ComXT (COMbined Xml Tools): http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=AC6259D9-F7B3-47AA-8ACF-A2D6D0899C38 It does XSL...
4
by: ziggyware | last post by:
Hi All, I've been writing an XPath genration tool in .NET that has GREAT potential for business applications where exact XPaths are needed. Currently the tool is share ware however it can be...
0
by: ziggyware | last post by:
Hi All, I've been writing an XPath genration tool in .NET that has GREAT potential for business applications where exact XPaths are needed. Currently the tool is share ware however it can be...
3
by: werD | last post by:
Hello I have an xml document that im currently using a forward only .net repeater on and using some xpath queries to display the data The xml is quite simple <?xml version="1.0"...
17
by: Luc Mercier | last post by:
Hi Folks, I'm new here, and I need some advice for what tool to use. I'm using XML for benchmarking purposes. I'm writing some scientific programs which I want to analyze. My program generates...
3
by: musicgold | last post by:
Hi, I am new in XML. But I have done coding in VBA, C, and HTML. I am using VBA to extract data from an xml file. I use Xpathbuilder to generate Xpath queries for my work. However, some Xpath...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
0
by: F22F35 | last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.