// not fluent public void AddChild(string childName, string childText) { var e = new HtmlElement(childName, childText); root.Elements.Add(e); }
public void Clear() { root = new HtmlElement { Name = rootName }; }
public void AddChild(string childName, string childText, bool isClosed = false) { var e = new HtmlElement(childName, childText, isClosed); root.HtmlElements.Add(e); }