I want to select sibling text node of an element. This is how I select it in XPath
//div[@class='someclass']/following-sibling::node()
Above code would select text SALAAM in XPath
<foo>
<div class='someclass'/>
SALAAM
<bar>something</bar>
</foo>
Is this possible with JSoup selectors? I don't want to code java, just need some sizzle-like selector.
Please note that this is is different from Getting text of element without including text of sub-element with jsoup, because the answer there is not pure selector expression.