http://zhidao.baidu.com/link?url=iv8ZIymLyrjClqW0aLnY63McKyvNw6VAUm5QoeXxt0JvpeqskhENHidQEtRy6PtDX8Uuy6KWzvTJ1kj0XROB1a



XmlDocument xmlDocument = new XmlDocument();

XmlNode singleNode = xmlDocument.SelectSingleNode("data/prp_budgets");
if (singleNode != null)
{ 
            //不为空
}
if (xmlDocument.SelectSingleNode("data/prp_budgets")!= null)
{ 
            //不为空
}
















本文转载:CSDN博客