public static string ToString(XmlNodeList nodes) { StringBuilder sb = new StringBuilder(); try { foreach (XmlNode node in nodes) { sb.AppendLine(node.OuterXml); } string s = "<Root>" + sb.ToString() + "</Root>"; s = Indent(s); s = UStr.TrimStart(s, "<Root>"); s = UStr.TrimEnd(s, "</Root>"); return(s); } catch { return(""); } }