public static string DumpCompact(TreeDumperNode root)
 {
     var dumper = new TreeDumper();
     dumper.DoDumpCompact(root, string.Empty);
     return dumper.sb.ToString();
 }
 public static string DumpXML(TreeDumperNode root, string indent = null)
 {
     var dumper = new TreeDumper();
     dumper.DoDumpXML(root, string.Empty, string.IsNullOrEmpty(indent) ? string.Empty : indent);
     return dumper.sb.ToString();
 }