you need specify non-empty prefix:XmlDocument xd = new XmlDocument();
xd.Load(@"a.xml");
XmlNamespaceManager nsmgr = new XmlNamespaceManager(xd.NameTable);
nsmgr.AddNamespace("xx","http://kmp");
XmlNodeList xnl = xd.SelectNodes("configuration/xx:dra/xx:bui/xx:buil/xx:dispURL",nsmgr);
seehttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemxmlxmlnodeclassselectsinglenodetopic2.asp
xd.Load(@"a.xml");
XmlNamespaceManager nsmgr = new XmlNamespaceManager(xd.NameTable);
nsmgr.AddNamespace("xx","http://kmp");
XmlNodeList xnl = xd.SelectNodes("configuration/xx:dra/xx:bui/xx:buil/xx:dispURL",nsmgr);
seehttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemxmlxmlnodeclassselectsinglenodetopic2.asp
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货