D
Dan
I've loaded the following xml into an XMLDocument object:
<?xml version="1.0" ?>
- <Preferences>
<Institution>Argh</Institution>
<Speaker>Chigier, Ben (1234)</Speaker>
<Worktype>Addendum</Worktype>
<speakerCode>1234</speakerCode>
</Preferences>
I then try to retrieve the value of the Institution node as follows:
string s = myxmldoc.SelectSingleNode("/Preferences/Institution").Value;
However, s is null after the call. But if I change the call to the
following, s is what I'd expect: "Argh".
string s = myxmldoc.SelectSingleNode("/Preferences/Institution").InnerText;
Anyone know what's going on?
Thanks...
Dan
<?xml version="1.0" ?>
- <Preferences>
<Institution>Argh</Institution>
<Speaker>Chigier, Ben (1234)</Speaker>
<Worktype>Addendum</Worktype>
<speakerCode>1234</speakerCode>
</Preferences>
I then try to retrieve the value of the Institution node as follows:
string s = myxmldoc.SelectSingleNode("/Preferences/Institution").Value;
However, s is null after the call. But if I change the call to the
following, s is what I'd expect: "Argh".
string s = myxmldoc.SelectSingleNode("/Preferences/Institution").InnerText;
Anyone know what's going on?
Thanks...
Dan