protected StringBuilder GetXmlScheam(int type) { StringBuilder builder = new StringBuilder(); foreach (XmlScheme scheme in XmlManage.GetXmlTree(this.rootnode, 0, 0, string.Empty, type, 0)) { int num = 0; builder.Append("<div id=\"fixdiv\">"); while (num < scheme.Level) { if (num > 0) { builder.Append(" |"); } else { builder.Append("|"); } num++; } if (scheme.Level > 0) { string str; builder.Append("-"); if (scheme.Repnum > 1) { str = "0"; } else if (string.Compare(scheme.Type, "attributes", StringComparison.OrdinalIgnoreCase) == 0) { str = "2"; } else { str = "1"; } builder.Append("<span path=\"" + scheme.Path + "\" tn=\"" + scheme.Name + "\" onclick=\"cit()\" outype=\"" + str + "\""); } else { builder.Append("<span"); } string str2 = scheme.Type; if (str2 == null) { goto Label_017D; } if (!(str2 == "havechile")) { if (str2 == "attributes") { goto Label_0158; } goto Label_017D; } builder.Append(" class=\"havechilediv\">"); builder.Append(scheme.Name); goto Label_0196; Label_0158: builder.Append(" class=\"attribdiv\">"); builder.Append("@" + scheme.Name); goto Label_0196; Label_017D: builder.Append(" class=\"nodediv\">"); builder.Append(scheme.Name); Label_0196: builder.Append("</span>"); if (scheme.Repnum > 1) { builder.Append("[repet:" + scheme.Repnum.ToString() + "]"); } builder.Append("</div>"); } return(builder); }