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