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); }
public void MergeChildren(DmlElement elements) { elements.Children.ForEach(n => n.Parent = this); elements.Children.ForEach(Children.Add); }
public void InsertChild(int index, DmlElement element) { element.Parent = this; Children.Insert(index, element); }
public void AddChild(DmlElement element) { element.Parent = this; Children.Add(element); }