html - Extracting a number from an XML node -


the best (so far) xpath extract following node:

<li class="list-guests">&#13; <span class="icon guests"/>&#13; 3&#13; </li> 

i need extract number 3. there way in xpath? don't want start using complicated regex if can avoid it.

you should able use text() function


Comments

Popular posts from this blog

c# - Attribute value in root node of xml Linq to XML -

android - Retrieve value from radioButtons in alertDialog -

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -