예제 #1
0
 public DmlDocument(Dictionary <string, string> attrs = null, bool endTag = true)
     : base(attrs, endTag)
 {
     TagName = "html";
     _head   = new CustomNode("head");
     _body   = new CustomNode("body");
     AddChild(_head);
     AddChild(_body);
 }
예제 #2
0
파일: DmlElement.cs 프로젝트: lbrugnara/dml
 public void MergeChildren(DmlElement elements)
 {
     elements.Children.ForEach(n => n.Parent = this);
     elements.Children.ForEach(Children.Add);
 }
예제 #3
0
파일: DmlElement.cs 프로젝트: lbrugnara/dml
 public void InsertChild(int index, DmlElement element)
 {
     element.Parent = this;
     Children.Insert(index, element);
 }
예제 #4
0
파일: DmlElement.cs 프로젝트: lbrugnara/dml
 public void AddChild(DmlElement element)
 {
     element.Parent = this;
     Children.Add(element);
 }