Esempio n. 1
0
 /// <summary>
 /// Create a new comment node.
 /// </summary>
 /// <param name="data">The contents of the comment</param>
 /// <param name="baseUri">base URI</param>
 public Comment(string data, string baseUri)
     : base(baseUri)
 {
     Attributes.Add(COMMENT_KEY, data);
 }
Esempio n. 2
0
 /// <summary>
 /// Get the contents of the comment.
 /// </summary>
 /// <returns>Content</returns>
 public string GetData()
 {
     return Attributes.GetValue(COMMENT_KEY);
 }
Esempio n. 3
0
 protected Node()
 {
     _childNodes = new List <Node>();
     _attributes = null;
 }