473,549 Members | 2,864 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8290
Scott Simpson (ss******@visio nsolutions.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\li b\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.sourcef orge.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
8939
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 (http://www.tfi-technology.com/xmlgrep/:) Seems to be a dead and removed project. - fxgrep: A UNIX project. I have downloaded a SML compiler for windows
2
2339
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 for a way to query XML documents stored in an Oracle 9i database, contained in an unstructured CLOB column, much like one would with a traditional...
10
2273
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 field names. Everything there works fine. Here's my XML Document: <?xml version="1.0" standalone="yes" ?> <DataSet1...
0
1388
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 transformations, XPath queries (both nodes and evaluations) with namespace support, Xml stats, and simple formatting. Both the transformations and...
4
1513
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 used indefinately without purchasing. http://www.ziggyware.com/downloads.php?cat_id=2
0
1165
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 used indefinately without purchasing. http://www.ziggyware.com/downloads.php?cat_id=2
3
2198
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" encoding="utf-8" ?> <data> <supervisors>
17
2287
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 large XML logs giving semi-structured information on the flow of the program. The XML tree looks like the method calls tree, but at a much higher...
3
5091
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 queries are causing errors in my program. As I am new in xml and its standards I am not sure what is causing them. Answers to the following questions...
0
7750
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7991
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7509
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7838
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5396
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1971
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1084
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
790
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.