S
Shawn
Hi,
I'm looping through an XmlNodeList and the second XmlNode in the list
contains this OuterXml:
<element><name>plant</name><value>100</value></element>
Next I have this XPath (inside the loop):
myXmlNode = myXmlNodeLoop.SelectSingleNode("name[plant]")
This returns Nothing. If I try it like this:
myXmlNode = myXmlNodeLoop.SelectSingleNode("name['plant']")
Then an XmlNode is always retuned, but I don't want it to be returned as it
doesn't contain the value (plant) that I'm looking for.
What am I doing wrong here?
Any help is greatly appreciated!!
Shawn
I'm looping through an XmlNodeList and the second XmlNode in the list
contains this OuterXml:
<element><name>plant</name><value>100</value></element>
Next I have this XPath (inside the loop):
myXmlNode = myXmlNodeLoop.SelectSingleNode("name[plant]")
This returns Nothing. If I try it like this:
myXmlNode = myXmlNodeLoop.SelectSingleNode("name['plant']")
Then an XmlNode is always retuned, but I don't want it to be returned as it
doesn't contain the value (plant) that I'm looking for.
What am I doing wrong here?
Any help is greatly appreciated!!
Shawn