public static string getXmlNodeStr(XmlVisitor node, string xpath) { string buff = ""; if (node == null || xpath == "") { return(""); } foreach (var n in node.ChildrenByPath2(xpath)) { buff += n.Value + " "; } return(buff.TrimEnd()); }