tags:

views:

62

answers:

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

can you do something like

//html/text()[2]

it doesn't work.

+1  A: 
<?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?

meder
i am using ruby nokogiri
pingu
`doesn't work` is vague. are you getting any errors? come on.. more information *please*
meder