I'm new to XML namespaces, and I seem to be missing something obvious
in this code snippet, which is trying to retrieve the feed/entry nodes
from an XPathNavigator document:
XmlNamespaceManager mgr = new
XmlNamespaceManager(xpNav.NameTable);
mgr.AddNamespace("atom", "http://www.w3.org/2005/Atom");
XPathExpression itemsExpr = xpNav.Compile("/atom:feed/
atom:entry/");
itemsExpr.SetContext(mgr);
XPathNodeIterator items = xpNav.Select(itemsExpr);
The error comes back...
"The expression passed to this method should result in a NodeSet." --
and, indeed, the XPathNodeIterator doesn't result in any entries.
I'm using .Net 1.1. I believe this might affect the final code.
Thanks for any pointers.
--Brent