xpath: how to select all text nodes that precedes or follows <br> tags ? possible for \n? -


text<br> text2<br> text3<br/> 

br tags may self closing or not.

would possible regular text:

text\n text2\n text3\n 

you can give:

//br/preceding-sibling::*/text()

where //br select breaks in document


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -