Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
53 views

I have been trying to minimize the logs sent to SIEM by filtering them at the source. You can find the filter I used below. It is long. Instead of using a long <Select> statement with inverted ...
Zafer Balkan's user avatar
0 votes
1 answer
66 views

Apologies for the unclear title but I'm unsure of the correct terminology. Allow me to clarify: My starting XML <osmChange> <way id="304298875"> <nd ref="...
DaveF's user avatar
  • 285
0 votes
1 answer
84 views

My XML (snip): <way id="1237072661"> <nd ref="11488882051"/> <nd ref="11488882048"/> <tag k="railway" v="station&...
DaveF's user avatar
  • 285
0 votes
0 answers
34 views

I'm using this XPath to filter out data. .selectNodes("(//delete/node|//delete/way)[tag[@k='railway'][@v='station' or @v='platform']]") It returns this, as expected. <delete> <...
DaveF's user avatar
  • 285
0 votes
1 answer
42 views

Unable to extract the all values from Xpath from multiple tags with condition Example: Extract all parameters :CarrierCode,DepartureDate,Destination,OperatingFlightNumber with condition PtcId=1. <?...
Lalmani Kashyap's user avatar
0 votes
2 answers
70 views

I'm using the xsltproc command and getting unexpected output from a predicate using the number() function. I'm trying to use number()'s output as a boolean, with 0 treated as false and all other ...
narwahl's user avatar
  • 99
0 votes
2 answers
141 views

I have ingested XML file in Postgresql DB and I trying to perform XPATH operation on the field with date comparison but it is not working. From Postgresql official site I found out that Postgresql ...
The6thSense's user avatar
  • 8,345
1 vote
1 answer
56 views

My goal is to get the price text from the page. When I use the XPATH //*[@id="module_product_price_1"]/div/div/span , it finds just one item. However, when I include the text() function //*[...
Raisul Islam's user avatar
1 vote
2 answers
51 views

I would like to extract the text within the following HTML. However, everything that occurs within an enclosed HTML tag and everything that comes after it should be ignored. The HTML appears in ...
Rico Sonntag's user avatar
  • 1,518
0 votes
1 answer
40 views

I have this xml document: " : " is the separator. xml = """ <a> <b> 1,2,3 : 4,5,6 : 7,8,9 : 10,11,12 </b> </a> """ How can I get ...
Crystal Jr's user avatar
0 votes
1 answer
40 views

first time poster and XPath beginner. I hope you can help me with this XPath problem I have. Here's a simplified example of my file. <town> <library> <section> <book&...
Alexis P.'s user avatar
0 votes
1 answer
453 views

I try to match multiple elements and all their occurences through concatenation. I tried two expressions concat(//h5,'###',//h5/following-sibling::p) concat(//*/h5,'###',//*/h5/following-sibling::p) ...
Evgeniy's user avatar
  • 2,657
0 votes
0 answers
74 views

I am trying to create an XPath with v1.0 that returns a list of all amount elements Amt[@Ccy="EUR"]. However, it should be noted that if the sibling element of this element CdtDbtInd has the ...
stax's user avatar
  • 393
1 vote
2 answers
137 views

I have a xslt and xml processing workflow where the document is processed from the root match and then various other processing elements are triggered. I now need to take that same workflow and inject ...
MergatroidSA's user avatar
2 votes
1 answer
46 views

I'm writing a custom xml rule for SonarQube with XPath 1.0. The parent version cannot be lower than 4.12.* <?xml version="1.0" encoding="UTF-8"?> <project> <...
Alan Michel's user avatar
0 votes
1 answer
28 views

I need to click on the element which is there in the list but I am unable to click on the element I am using (//[@class="pb-dropdown__contents pb-dropdown__contents--no-margin pb-...
Zahid Ulla's user avatar
1 vote
1 answer
3k views

Windows Event Viewer (WEV) allows custom queries using "a subset of XPath 1.0."1 I've been unsuccessfully struggling for a couple hours to craft a query that works. I'm hoping someone on ...
Mark Moore's user avatar
1 vote
3 answers
81 views

"name" : "a", "type": "container", "kids": [{ "name": "a1", "type": "container"...
Swagata Mondal's user avatar
1 vote
1 answer
63 views

I'm looking for some numbers on https://tnnslive.com/ The numbers I'm looking for on tnnslive.com: If I copy the xpath in Chrome, I get: //*[@id="root"]/div/div/div/div/div/div/div/div[2]/...
janosch1931's user avatar
0 votes
1 answer
17 views

I am currently going through an xml data, <datas> <data> <key1>ABC</key1> <key2>def</key2> </data> <data> <key1&...
Rishi's user avatar
  • 1
0 votes
1 answer
54 views

input.xml file - <?xml version="1.0" encoding="utf-8"?> <sg:EmployeeDetails xmlns:sg="http://sg.iaea.org/ssac-qs/qsSchema.xsd"> <sg:FirstName>Sagar&...
Raviraj Bhalerao's user avatar
0 votes
2 answers
48 views

I have below XML <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:partner.soap....
user3441151's user avatar
  • 1,912
0 votes
1 answer
27 views

when i use text as follow , but it doesn't work //button[contains(text(),"Project Association")] how to get the element "button" with specific text in xpath 1.0 <div data-v-...
xyzXyz's user avatar
  • 1
-1 votes
2 answers
136 views

I have this example HTML: <div class="_bns--table"> <table class="bns--table" border="0" cellspacing="0" cellpadding="0" width="...
Price Mitchell's user avatar
-1 votes
1 answer
87 views

Example HTML: <root> <td><p><b>Random Text</b></p> <p><b>Random Text:</b> Random Text</p> <p><b>Random Text:</b> 001057567&...
Price Mitchell's user avatar
0 votes
1 answer
134 views

I'm looking for an XPath 1.0 query that would look somewhat like this: //*[contains(text(), 'EXAMPLE') and translate(text(), translate(text(), '0123456789', ''), '') != ''] But the problem with this ...
Price Mitchell's user avatar
0 votes
1 answer
117 views

I am wokring with XML and XPATH v1.0, specifically using libxml2's Schematron module, that I am quite sure that uses the Xpath module for the assert tests. So in order to simplify the problem, lets ...
JoseleMG's user avatar
  • 312
0 votes
2 answers
49 views

I have this xsl 1.0 call-template. It takes the two xml-elements, given as parameters and returns an element created from both parameters, but with distinct Elements. All doubles should be removed <...
Hagen Munsch's user avatar
1 vote
2 answers
88 views

I want to write an xpath for verify the Custom Report text without index. HTML: <ol> <li> <a href="https://dumpy.url.com">Lw2_0702230135</a> </li&...
músic a's user avatar
0 votes
0 answers
137 views

I need to sum the values of the following two XPATHS 1: /data/dealerLoanApplication[1]/licenseFee[1] 2: /data/dealerLoanApplication[1]/titleFees[1] When I test the above XPATHs separate I get the ...
Helen's user avatar
  • 1
1 vote
1 answer
250 views

public WebElement findChildByXpath(WebElement parent, String xpath) { loggingService.timeMark("findChildByXpath", "begin. Xpath: " + xpath); String parentInnerHtml = ...
Kifsif's user avatar
  • 3,893
0 votes
1 answer
2k views

I'm trying to automate process of pinging a person on a messenger on selecting the messenger name(Nayan) Please find the Html code <div class="Presence__text"> <span class="...
nayansFosgit's user avatar
3 votes
3 answers
931 views

I have a column with some info displayed like that: Product Info I am the 3rd product from 2020 I was created in 1995 and I went public in 2021 I am a not sure if I'm from 2019 2020 2021 I have a ...
srtklein's user avatar
0 votes
3 answers
5k views

enter image description here <button class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root ...
Jugal Saroliya's user avatar
1 vote
1 answer
43 views

Im trying to filter an XML File based on the value of the node <MIME_INFO> <MIME> <MIME_TYPE>image/jpeg</MIME_TYPE> &...
aje89's user avatar
  • 13
1 vote
1 answer
272 views

I want to get <sonar.exclusions>, <jacoco.line.min.coverage> and <jacoco.complexity.min.coverage> from the pom.xml <?xml version="1.0" encoding="UTF-8"?> &...
Observer's user avatar
0 votes
3 answers
459 views

I want to exclude all elements that contain links, using xpath <p/>...</p> <p/>...</p> .... <p/> <strong/> <a href="https://exapmle.com" rel="...
Anton Bohatov's user avatar
0 votes
1 answer
53 views

I have huge corpora that I am parsing with lxml, so I am using iterparse which makes it easy to read XML on-the-fly. By using iterparse(fh, tag="your_tag") we can efficiently iterate over ...
Bram Vanroy's user avatar
  • 28.8k
0 votes
1 answer
68 views

I am running into some unexpected issues with XPath. I have a query that runs fine when using a database system like BaseX, but in Python with lxml it throws an error. Here is an example: import lxml....
Bram Vanroy's user avatar
  • 28.8k
1 vote
1 answer
88 views

I have a very complex HTML of a website. I want to select multiple groups of elements by relative Xpath. For example: //div[@class="something] | //span/div | //div/span/div[@class="...
Tocy777's user avatar
  • 56
0 votes
1 answer
140 views

XML : <A> <B> <C name="test name1" age="10"> <id>1</id> <address/> </C> <C name=&...
VGH's user avatar
  • 445
2 votes
2 answers
323 views

When we have multiple terms to locate an element we can use a single predicate with logical and operator inside it or to use multiple predicates with single term inside each predicate. For example on ...
Prophet's user avatar
  • 33.5k
0 votes
3 answers
253 views

If you have two Xpaths you can join them with the | operator to return both their results in one result set. This essentially gives back the union of the two sets of elements. The example below gives ...
CaptainCsaba's user avatar
1 vote
1 answer
4k views

I'm looking for some hint how to use xpath "ends-with" expression. I've got such element to find: <div class="osaiowrhg29875n345" id="react-select-4-listbox"> ...
Karol Odwald's user avatar
5 votes
2 answers
10k views

I want to clearly understand what is the difference between the following XPath expressions "//*[contains(.,'sometext')]" and "//*[contains(text(),'sometext')]". From this great ...
Prophet's user avatar
  • 33.5k
0 votes
1 answer
483 views

My goal is to extract image URLs together with style attribute (width and height) with the help of Screaming Frog. <p style="text-align: center;"><img alt="Scary games are all ...
Hanna's user avatar
  • 131
1 vote
1 answer
108 views

I am working with a content management system that allows placing elements depending on XPath rules. Here is a simplified example: <...> <chapter> <node2> <step tool=&...
Korbinian's user avatar
0 votes
0 answers
91 views

I need a select element by xpath with text. In this case it should be case-insensitive. I added Turkish characters (Ç,Ö,İ,Ş,Ü,Ğ) in translate() function but its not working. Same method working ...
HighHill's user avatar
1 vote
1 answer
913 views

I have XPath, which click the element when the value matches to 1800, but I want this to work only like if the value is greater than 1800, I am noob and I don't know about that I just googled, Here is ...
nakhru_143's user avatar
0 votes
2 answers
160 views

(and including the ending tag) For example: <xml> <a></a> <a><b></b></a> <a></a> <a></a> <a><c></c></a&...
Nakilon's user avatar
  • 35.2k

1
2 3 4 5
9