you have to load the xml into a DOM object:XmlDocument xmldoc = new XmlDocument();
xmldoc.Load("YourXML");
XmlNode node = xmldoc.SelectSingleNode("//某個節點");
if (node != null)
//有
else
//無
xmldoc.Load("YourXML");
XmlNode node = xmldoc.SelectSingleNode("//某個節點");
if (node != null)
//有
else
//無
you have to load the xml into a DOM object:XmlDocument xmldoc = new XmlDocument();
xmldoc.Load("YourXML");
XmlNode node = xmldoc.SelectSingleNode("//某個節點");
if (node != null)
//有
else
//無
学习