Questions tagged [xpathquery]
55 questions
0
votes
1 answer
php DomDocument xpath: how can i print the all html content of an element resulted from an xpath query?
I'm using DomDocument to query for html elements.
when i use $obj->textContent or $obj->nodeValue it returns only the texts that include in the element, it does not return the html representation of the object.
which means..
if the object…

ufk
- 30,912
- 70
- 235
- 386
0
votes
1 answer
get element by id and get element by Value xpath in php
XML file

User4834426
- 101
- 2
- 9
0
votes
0 answers
HtmlAgilityPack and Xpath
I wanted to create a function on C# console application that able to click on html tag and store data from link,
firstofall I traverse html with htmlagilitypack(Xpath query) and find all of the tag,that name is "Contact details".
on that page there…

howin
- 1
0
votes
2 answers
xpath query conditional test comparing 2 numeric values
can someone explain to me why this condition return false in this following xpath query
xml
ha
xpath query
count(//a) return 1.
but
test="(count(//a) > 0)" return false?
Thank you

timpham
- 556
- 2
- 7
- 25
0
votes
2 answers
Get xml results where element node is equal to string
ok, xml file looks like this, it is set to a variable $otherdata
Johhny
smith
5551234
and php code looks like this
$dom = new DOMDocument;
$dom…

user3614185
- 17
- 3
0
votes
1 answer
Loading Multiple lines of HTML parse into one UITextField
I have a set of HTML code, here:
Year 11 students will be making their course selections online this year.
Information about this system has been made available through Tutor sessions. Each student will have an…

Seb OH
- 785
- 1
- 6
- 15
0
votes
1 answer
xpath html query : select tnodes if these are not children of a given node
I'm very a newbie with xpath started looking at it today :)
I have some html that have the following structure :
someText_1
someOtherText_1 link_1
…
oiledCode
- 8,589
- 6
- 43
- 59
-1
votes
2 answers
Find specific element position in XPath after checking a condition
I have the following html I am working with: (a chunk of it here)
Credit Limit:Current Balance:Pending…
![]()
DT7
-1
votes
1 answer
get the texts with xpath queryi want to get the main texts of this page :
[this link][1]
i used this code to find the main text :
NSString *tutorialsXpathQueryString = @"//div[@id='middlepane']/table[2]/tr/td/div[1]/font";
but it is not working!
it is the saved page of that…
![]()
coder4xc
-3
votes
1 answer
how can i return all the hyperlinks in a HTML file using LibXml 2.2 (Objective C)i want to return all the hyperlinks in a html. what would be the XPath Query that ?(Objective C)
![]()
saleh Hosseinkahni
|