I'm currently struggling with a really weird problem. Ive got an XML which looks like this:
<A>
<B>
<C>
<D>
<E attribute="foo">
This is a value
</E>
</D>
</C>
</B>
</A>
Now when I'm executing my XPath-Query and traverse the result, I'm always getting the value "This is a value" as value of node A, which is not correct (The value should only be node E's value).
What is going wrong here? Seems like when saying A->childNodes, it gets all childNodes recursively and overwrites the values.
Any help would greatly be appreciated :)