Hi!
Here's my code:
//xd is an XmlDocument object, xnm is an XmlNameSpaceManager
XmlNodeList xnl = xd.SelectNodes
("/bd:SubscriptionInfoSet/bd:SubscriptionInfo",xnm);
//TEST: Check to see if we selected any nodes...print what we selected
Response.Write(xnl.Item(0).InnerXml);
Response.Write("\r\n" + xnl.Count);
OK...so, here is my nightmare.
The xnl.count always returns 1...and I can't iterate through the
nodes. However, the InnerXml displays all of the nodes that should
have been selected.
I attempted to iterate with a foreach loop, with an iEnumerator and
with an XPathNodeIterator -- none of these work because xnl is
CONVINCED there is only one node. But the InnerXml displays LOTS of
nodes, in fact, all of the ones it should.
What is going on?
Thanks in advance,
Robert