Exemple #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);
     }
 }
            public virtual void AddComment(int line, XMLComment c)
            {

            }
Exemple #3
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);
     }
 }