Esempio n. 1
0
 protected void ToDomString(DomElementList elements, StringBuilder stringBuilder, int level)
 {
     foreach (DomElement element in elements)
     {
         stringBuilder.Append(Environment.NewLine);
         stringBuilder.Append(new string(' ', level * 4));
         stringBuilder.Append(element);
         ToDomString(element.Elements, stringBuilder, level + 1);
     }
 }
Esempio n. 2
0
 protected DomElement()
 {
     Elements   = new DomElementList();
     Attributes = new AttributeList();
 }