I am using php dom function nodeValueto extract text content. But it also returns the values of the descendants:
<example>
<inhalt>123<more>45</more></inhalt>
</example>
return for inhalt12345 and 123, as I prefer. I know that it makes no sense and is not very good to have text inside inhalt, but how do I check that there is no text in inhalt, for example hasNodeValue?
rokdd source
share