Solved

best command-line XPATH parser?

Posted on 2013-06-08
4
416 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
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, …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

912 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

23 Experts available now in Live!

Get 1:1 Help Now