我想通过 QueryString 根据 id xmlelement 值过滤我的代码,但它似乎不起作用!!!
XmlDocument xdoc = new XmlDocument();
xdoc.Load(filepath);
XmlNode root = xdoc.DocumentElement;
XmlNode idNode = root.SelectSingleNode("/students/student/id");
if (idNode.Value == null){create a new xml node}
else if (idNode.Value != null) {update the xml element with the value of id)
我试图解释它的问题,这是链接...