pingu
pingu

Reputation: 111

selecting specific text node with xpath?

<html>
apple
<Br>
orange
<br>
drugs
</html>

can you do something like

//html/text()[2] 

it doesn't work.

Upvotes: 1

Views: 453

Answers (1)

meder omuraliev
meder omuraliev

Reputation: 186702

<?xml version="1.0"?>
<html>
apple
<br/>
orange
<br/>
drugs
</html>
//html/text()[2]

returns orange for me @ http://www.xmlme.com/XpathTool.aspx. What language are you dealing with?

Upvotes: 1

Related Questions