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
  //無

解决方案 »

  1.   

    回复人: saucer(思归, MS .NET MVP) ( ) 信誉:315  2003-08-05 09:37:00  得分:0 
     
     
      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
      //無
      
     
    学习