Пример #1
0
 private void NewComment(string comment, XMLListener l, int index)
 {
     if (this.topElement != null)
     {
         XMLComment c = new XMLComment(comment.Substring(4, (comment.Length - 3) - (4)));
         this.topElement.AddContents(c);
         if (l != null)
         {
             l.AddComment(index, c);
         }
     }
     else if (this.rootElement == null)
     {
         this.header.Append(comment);
     }
 }
Пример #2
0
 private void NewComment(string comment, XMLListener l, int index)
 {
     if (this.topElement != null) {
         XMLComment c = new XMLComment(comment.Substring(4,(comment.Length - 3)-(4)));
         this.topElement.AddContents(c);
         if (l != null) {
             l.AddComment(index, c);
         }
     } else if (this.rootElement == null) {
         this.header.Append(comment);
     }
 }