Solved

best command-line XPATH parser?

Posted on 2013-06-08
4
414 Views
Last Modified: 2013-06-11
I need to find the best command-line XPATH html/xml parser.

With some research I found two command-line parsers that supports the very recent XPATH 3.0:
- Basex
- Saxon-PE

Are they the best command-line XPATH html/xml parser on the market?
0
Comment
Question by:lucavilla
  • 2
  • 2
4 Comments
 
LVL 26

Expert Comment

by:skullnobrains
ID: 39232139
you may want to try xsltproc http://xmlsoft.org/XSLT/xsltproc2.html
that was years ago but it used to be faster and more robust than saxon while using reasonably little resources. i'm unsure the version it supports. i saw 2.0 was implemented mid 2k though

i don't remember using baseX
0
 

Author Comment

by:lucavilla
ID: 39232167
I looked at that page but xsltproc doesn't cite "XPATH".
What's the specific name of tool to download are where can I download it?
and what's the command-line for extracing an XPATH nodes-set from an html local file?
0
 
LVL 26

Accepted Solution

by:
skullnobrains earned 500 total points
ID: 39232261
i think i incidentally answered in your other thread. using xpathtool should do the trick. it is a wrapper around xsltproc that lets you execute an xpath query and produces the xml output. i assume it barely sets up a 3 lines xslt that selects the given xpath query on the file read from stdin
0
 

Author Closing Comment

by:lucavilla
ID: 39239681
...
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now