tags:

views:

27

answers:

2

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

A: 

In python it would be: somexml.firstChild.firstChild.data or somexml.getElementsByTagName('xml').firstChild[0].data

Derek Litz
A: 

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

zachary