public void AddChild(XML child) { if (children == null) { children = child; } else { children.AddNext(child); } }