Questions tagged [xpath]

XPath, the XML Path Language, is a query language for selecting nodes from an XML document. In addition, XPath may be used to compute values (e.g., strings, numbers, or Boolean values) from the content of an XML document.

XPath, the XML Path Language, is a query language for selecting nodes from an XML document. In addition, XPath may be used to compute values (e.g., strings, numbers, or Boolean values) from the content of an XML document.

Related

Standards page

https://www.w3.org/TR/xpath/

11 questions
8
votes
2 answers

Adding route automatically after a successful VPN connection in Windows 10

I'm trying on my W10 to perform an automatic "route" command after a successful VPN connection. I tried it based on this short description here which is for W7 but seems so similar, but I can't make it work. My VPN connection is ok. It connects and…
6
votes
1 answer

Which version of XPath does Firefox support?

I am building a web scraper using Firefox with Selenium WebDriver, and I would like to use XPath expressions that exist only in XPath 2 and XPath 3. Which version of XPath does Firefox support? If it is XPath 1.0, is there any way to make Firefox…
P A N
  • 1,517
4
votes
2 answers

How do I search with XPath in Firefox Quantum 65?

I used to use FirePath and FireBug for XPath support in Firefox a long time ago, but those tools haven't worked with Firefox for some time. I was disappointed but found that I could still use the find feature in the inspector developer tool to look…
nikodaemus
  • 2,883
2
votes
0 answers

print XPath for match using xmlstarlet?

I would like to iterate over many xml files to fix outdated configuration entries by getting all matches and replacing then in a second step every entry by updated strings (multiline scripts in this case). I'm aware how to query/select and print…
1
vote
0 answers

XML Xpath for Windows event?

I'm trying to create an event filter based on the following event XML (an example), but I seemed to be missing something:
1
vote
2 answers

XML query in Bash with XMLStarlet

I need to extract a few values from an XML file, and I stumbled onto XMLStarlet that seems pretty powerful. Knowing little about XML, I'm overwhelmed with the tool, and likely need only a very tiny part of it. I have a file like the following and I…
gmark
  • 41
0
votes
1 answer

How to stop output separated by blank lines with xmllint

I have the following xml generated from Gnote:
Yetoo
  • 13
0
votes
1 answer

Retrieve European Central Bank currency rates XML into LibreOffice Calc cells

The premise is to retrieve current currency rates into a Libre/OpenOffice Calc spreadsheet. Previously I did it using a JSON service, with manual tweaking of substrings, which isn't all that user-friendly. So I wanted to find out how it could be…
0
votes
1 answer

uBlock - block element with (almost) the same CSS/XPath?

On this page https://www.eventbrite.com/checkout-external?eid=97762112109 I would like to block the check box with the legend "Eventbrite can send me emails about the best events happening nearby." but not the two elements with two checkboxes just…
d-b
  • 956
0
votes
1 answer

Why does XML editing/XPath searching use such ridiculous amounts of memory?

I have a large XML file (about 37 MB—it’s the underlying XML file in a Word document of about 350 pages) that I am trying to search through with XPath. I’m doing this ‘manually’ rather than programmatically, by opening the file in an XML editor and…
0
votes
1 answer

WebStorm Evaluate XPath Expression and view results

When I use the Evaluate XPath Expression dialog to execute XPath against an XML document (a document external to the project), it works and highlights the matches in the document, but it doesn't display a list of matching results in the bottom panel…
wst
  • 152