private static GetXmlValue ( System.Xml.Linq.XElement node, string tag ) : string | ||
node | System.Xml.Linq.XElement | |
tag | string | |
리턴 | string |
private static string GetXmlValue(XElement node, string tag)
{
var xElement = node.DescendantsAndSelf(tag).FirstOrDefault();
return xElement == null ? string.Empty : xElement.Value;
}