int nsid = int.Parse(txtStation.Text);
int dtid = int.Parse(txtDevicetype.Text);
int did = int.Parse(txtDevice.Text);
XmlDocument dom = new XmlDocument();
dom.Load(Server.MapPath("XMLFile/Net.xml"));
XmlNode xn = dom.SelectSingleNode("/root/netstation[@id=" + nsid + "]/devicetype[@id=" + dtid + "]/device[@id= " + did + "]/*");
if ()
{
txtID.Text = xn.Attributes["id"].Value;
txtValue.Text = xn.Attributes["value"].Value;
}
判断netstation devicetype device三个节点中的id在xml文件中是否存在 括号内应该填什么