Questions tagged [domxpath]

domxpath is a class in PHP's DOM API to support XPATH 1.0

domxpath called the DOMXPath is a class in PHP's DOM API that support XPATH 1.0. It provides functions to run XPATH queries on the document and retrieve specific parts of the document

492 questions
-1
votes
1 answer

Xpath to find URLs that don't start with http/s

I am trying to write an Xpath to extract URLs used in both @href or @src attributes that are relative (URLs that don't start with http:// or https://). I have used the below but it's not working: //*[not(starts-with(@src, 'https:')) and…
-1
votes
1 answer

How to select specifix ID`s in table for P4 column via XPath

I need to choose ID`s from table with Priority P4. Added code from page with example the first row from table. I have created XPath for specific colums but can't create XPath for solution: "choose ID in table if Priority = P4". My…
Serhii
  • 13
  • 6
-1
votes
1 answer

xpath to extract the text in selenium

Need help in extracting the case id, would be great help

A new request is created successfully

prit
  • 41
  • 8
-1
votes
2 answers

How to handle multiple sub-elements in PHP DOMXPath?

I'd like to import an HTML document onto a MySQL database using PHP. The structure of the document looks like this :

word1 noun

...

Fafanellu
  • 424
  • 4
  • 20
-1
votes
1 answer

DOMDocument - How to get all inner text except from style/script tags?

I spent so much time on a very simple thing and had to post here on StackOverflow I want to get all inner text except the script/style tags $doc = new DOMDocument; $doc->preserveWhiteSpace = false; $html = <<