Questions tagged [xpath]
The primary purpose of XPath is to address parts of an XML document. It also provides basic facilities for manipulation of strings, numbers and booleans. XPath uses a compact, non-XML syntax. XPath operates on the abstract, logical structure of an XML document, rather than its surface syntax.
xpath
39,495
questions
0
votes
0
answers
42
views
How to find xpath to be used for panos arbritary code execution?
I used burpsuite to retrieve the requests by intercepting it but I do not see xpath instead, i see xpathid.
I am not sure if the xpath is /system-general/login-banner, since it gave an error message:
...
0
votes
1
answer
32
views
xmllint --xpath for <rdf:RDF><channel><title>
I have looked through every answer in these first three search pages and cannot get a solution; after page 2 questions aren't even relevant.
In this RSS feed:
<?xml version="1.0" encoding=...
1
vote
0
answers
33
views
XPath doesn't take any effect without throwing any errors
I want to make a button in 2 of our views only visible to users of a specific group. In the sale.order view everything works as intended. There is similar view in the account.move model which I ...
0
votes
1
answer
47
views
Cannot extract element xpath from docx
With python-docx-oss I use the following code (I want to write the Heading 3 style to a TXT file and include only the outline/level of numbering that is level 3, i.e. x.x.x):
from docx import Document
...
2
votes
2
answers
131
views
XPath for colspan attribute values as browser understands them?
I have a HTML table with possibly missing or malformed colspan values:
<table border="1">
<tbody>
<tr>
<th>A</th> <th>B</th> <th>C</...
1
vote
1
answer
38
views
HTML XPATH, get aunt/uncle html
I was able to get access to the tag that contained CSCI 12
"//span[contains(., '" + CSCI + "') and contains(., '" + 12 + "')]"
but im stuck trying to access the parents ...
1
vote
1
answer
63
views
How to get an attribute as an integer >= 1 with XPath?
Consider this input:
<tr>
<td />
<td rowspan="3" />
<td rowspan="-2" />
<td rowspan="*8#%@!" />
<...
0
votes
0
answers
22
views
How can I iterate through a table using selenium using XPATH to click a button that has the same XPATH in each row?
I am trying to scrape all the history information for some results in a table online. To do this, I need to click the "History" button on each row, which redirects to another page, then ...
0
votes
2
answers
58
views
Unable to click an element and scrape web using xpath and id- selenium
I have been trying to create a code to select an element on a web page- https://tmrsearch.ipindia.gov.in/eregister/ using xpath and element id with the help of Selenium library. I have mentioned two ...
0
votes
1
answer
42
views
fn:parse-json and NUL bytes in XPath
I know that XML doesn't allow NUL bytes in it, but I though that it would somehow work with JSON:
parse-json("""\u0000""") => serialize(map{"method": "...
0
votes
2
answers
124
views
Programmatically generate an array containing `null` values with XPath 3.1
I have a map representing a gaped array; the keys being the indexes of the array:
let $m := map{1: "val1", 2: "val2", 5: "val5", 7: "val7"} return
Now I would ...
0
votes
0
answers
46
views
How to create a correct XPath for this site?
I have this website https://firenze.bakeca.it/annunci/tutte-le-categorie/luogo/Fucecchio/ from which I would like to gather information. The information I need is the price, the links, the description,...
0
votes
0
answers
38
views
XPath not handling self-closing tags
I am trying to make an XPath path to describe a node in html. This node contains a self-closing tag and that is making my XPath not work. Am I doing something wrong or is this a bug in the xml2 ...
1
vote
3
answers
50
views
Selenium XPath: How do I click on the Load More button
I'm trying to scrape job listings on a career page. I'm trying to click the load more button, but cant seem to figure it out. i was wondering if someone could help me out -- I keep getting an error ...
1
vote
1
answer
55
views
XML output from SQL Server based on header and details
I have these table values:
ID
MARKS
TOTALMARKS
SUBJECT
CODE
3789
15
40
Science
SC
3789
25
40
Math
M
3932
14
48
Science
SC
3932
34
48
Social
SO
3957
42
42
Math
M
4871
11
31
Eng
E
4871
20
31
...