Solved

best command-line XPATH parser?

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Specific format 21 198
How to use xmlReader and idatareader  ? 4 56
XML XSLT If loop 4 26
read an xml file in perl 2 32
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

777 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