Questions tagged as 'xpath'

2
answers

Xpath with Python

I have the following XML (simplified): <produto refid="cat01" idprod="tv01"> <marca>xxx</marca> <modelo>xxxx</modelo> <genero>xxx</genero> </produto> <v:utilizador iduser="U00000"...
asked by 28.02.2015 / 13:00
2
answers

Finding XPath in Selenium

I'm breaking my head to find the XPath of a table . Could you help me? The structure looks something like this: <div> <div id="divMF"> <iframe name="Principal> <frameset id="frmset"> <fram...
asked by 07.02.2017 / 13:56
1
answer

Return various attributes using XPATH

How can I return multiple attributes using the xpath language? For example of this xml: <utilizador> <nome>Rui</nome> <contacto>91xxxxxxx</contacto> <localidade>Viseu</localidade&g...
asked by 26.02.2015 / 19:18
4
answers

Tool to generate XPath

Hello, I'm doing a spider to capture with XPath some web data. But the creation of xpath is a bit of work. Does anyone know of any way to train XPath? Example; I click 5 times on a link and some tool generates the xpath. Any tips are welco...
asked by 24.02.2015 / 19:07
2
answers

DOMXpath query with multiple classes

I'm performing a parse on a html file with the following structure: <div class="lstImv blackBd12"> <div class="stCl3 stLeft imvImg"> <div class="imgBox"> <a class="emp-imgs-link"&...
asked by 06.12.2016 / 05:40
1
answer

Identify elements with xPath

I wanted to identify the following element on a page: <input name="ctl00$ContentPlaceHolder1$txtData" type="text" value="19/01/2015" id="ctl00_ContentPlaceHolder1_txtData" style="font-size:110%;font-weight:bold;width:120px;" /> I'm us...
asked by 19.01.2015 / 23:16
1
answer

Query problems in XPath

HTML:      <div align="center"><center> <table border="0" cellpadding="0"> <tr> <td bgcolor="#006090" valign="top" align="center"><p align="center"><strong><font face="Tahoma" size="2" co...
asked by 03.03.2015 / 18:51
1
answer

Serialize XML and save in Oracle with C # and ADO

I would like to know if there is something equivalent in Oracle for this select in SQL Server: select NickName, ExternalId1 from Basics where externalId1 = @externalId1 for xml auto, elements; And for this select below: sele...
asked by 02.04.2014 / 05:03
1
answer

How to make an XPath expression in an XML with multiple namespaces?

I have the following xml: <root xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <body xmlns="http://www.foo.com/bar"> <checkCredit> <CheckCreditOut> <nomeSerasa />...
asked by 27.07.2015 / 20:06
1
answer

Access a certain line of the variable

Some time ago I asked a question about regular expressions and a user answered me using this code, using xpath : $dom = new DomDocument; $dom->loadHTMLFile("http://ciagri.iea.sp.gov.br/precosdiarios/"); $xpath = new DomXPath($dom);...
asked by 19.01.2015 / 13:24