private void WriteItem(XmlItem item, int level) { FastString sb = new FastString(); // start if (autoIndent) { sb.Append(Dup(level)); } sb.Append("<"); sb.Append(item.Name); // text item.WriteProps(sb); // end if (item.Count == 0 && item.Value == "") { sb.Append("/>"); } else { sb.Append(">"); } // value if (item.Count == 0 && item.Value != "") { sb.Append(Converter.ToXml(item.Value, false)); sb.Append("</"); sb.Append(item.Name); sb.Append(">"); } WriteLn(sb.ToString()); }