if I have some html like the following
<div class=unique_id>
<h1 class="parseasinTitle">
<span> Game Title </span>
</h1>
Game Developer
</div>
Is there a way I can use xpath to get JUST the "Game Developer" part of the text? From searching around I tried:
//div[@class='unique_id' and not(self::h1/span)]
But that still gives me the entire text "Game Title Game Developer".
elements. I thought that was similar to my use case since I also want all text except that which appears in a specfic tag. I see where the mistake on using 'self' is though. If I modify my xpath to be //div[@class='unique_id']/*[not(self::h1/span)] I get nothing back using /text() or not.
– theFakeGramita Aug 13 '13 at 21:48