Help me to remove span tag using xpath

<h1>
        <span>first text</span><br class="myclass">
	second text
    </h1>

Xpath : //html/body/section/section/div/article/div[3]/h1

result :first text second text

What i need : second text

not working i tried ://html/body/section/section/div/article/div[3]/h1/text()

How to achieve this ??

please help me urgent

Try this:

//h1/text()[preceding-sibling::br]

big thanks. its working