I'm using DOMDocument and XPath.
Given to following XML
<Description>
<CompleteText>
<DetailTxt>
<Text>
<span>Here there is some text</span>
<h2>And maybe a headline</h2>
<br/>
<span>Normal position</span>
<br/>
<span> </span>
<br/>
</Text>
</DetailTxt>
</CompleteText>
</Description>
The node /Description/CompleteText/DetailTxt/Text contains markup, unfortunately unescaped, but I can't change that. Is there any chance I can query that content maintaining the html markup?
What I tried
Obviously, nodeValue but also textContent. Both giving me the content omitting markup.