Hi, I need to extract every contents (text contents and not tags) under some tag, which may contain further tags, and I wonder how I can achieve this? For example suppose my xml looks like
<doc>
<title> The title of this message is (<italic> Question about xpath </italic> )</title>
</doc>
And I want to extract the "title", which should be "The title of this message is (Question about xpath)".
My xpath query is
//doc/title/text()
which only gives me "The title of this message is ()" and the "italic" contents are missing.
Is there anyway to revise this query to extract every contents under the "title" tag?
Thank you !