XPath query to get node after some other node

Posted by czesio on Stack Overflow See other posts from Stack Overflow or by czesio
Published on 2010-04-20T13:07:50Z Indexed on 2010/04/20 13:33 UTC
Read the original article Hit count: 310

Filed under:
|
|

I am using "HtmlAgilityPack" to parse HTML content. My target is to get number value.

<div>
    some content 1
    <br>
    some <b>content</b> 2
    <br>
    <b>NUMBER:</b>
    9788492688647
    <br>
    some content 3
    <br>
    some content 4
    </div>


aim:
 - get "9788492688647"

Anybody can tell me how to get value between  /div/b[2] and <br> ?

© Stack Overflow or respective owner

Related posts about xpath

Related posts about Xml