xPath in SelectNodes method below does not return any node, even if there are such nodes in xCurrent document.
XmlDocument xCurrent = new XmlDocument();
xCurrent.Load(File);
foreach (XmlNode Node in xCurrent.DocumentElement.SelectNodes("//Product"))
{
...
}
My assumption that it should is based on this: https://msdn.microsoft.com/pl-pl/library/ms256086(v=vs.110).aspx
//author All <author> elements in the document.
However I've found that following xPath returns what is required
xCurrent.DocumentElement.SelectNodes("//*[local-name()=\"Product\"]"))
It seems for me that xPath assumes that "//Product" means "//elibri:Product", because "//" xPath returns only "elibri:Dialect" node. What is the reason behind that assumption? List of child nodes of DocumentElement
is below.