This is what I got:
<xml>I need this text<notthistext>blahblah<notthistext></xml>
How can I get: I need this text
I am using .value and it is returning the text for everything like this: I need this textblahblah
This is what I got:
<xml>I need this text<notthistext>blahblah<notthistext></xml>
How can I get: I need this text
I am using .value and it is returning the text for everything like this: I need this textblahblah
In python it would be: somexml.firstChild.firstChild.data
or somexml.getElementsByTagName('xml').firstChild[0].data
This is actually for linq
The trick was to get all the nodes under the element and just reference the first node using the First function rather then using value