Parse question

Dec 7, 2010 at 7:31 PM

Hi!

I've this tag's

<div><p><strong>XX:</strong>1</p></div>

How can I get only the number "1" ??

 

Thanks!

Dec 8, 2010 at 6:52 AM
Edited Dec 8, 2010 at 6:55 AM

 

doc.DocumentNode.SelectSingleNode("/div/p/strong/following-sibling::text()") or

doc.DocumentNode.SelectSingleNode("/div/p/strong").NextSibling