System.Xml.Linq.XmlHelper.GetXElement C# (CSharp) Method

GetXElement() public method

获取xPath匹配到的第一个元素
public GetXElement ( string xPath ) : System.Xml.Linq.XElement
xPath string xPath表达式
return System.Xml.Linq.XElement
        public XElement GetXElement(string xPath)
        {
            return _doc.XPathSelectElement(xPath);
        }