public Element CreateElementNS(String namespaceURI, String tagName) { Element element = null; if (namespaceURI == Namespaces.Html) { element = HTMLFactory.Create(tagName, this); } else if (namespaceURI == Namespaces.Svg) { element = SVGFactory.Create(tagName, this); } else if (namespaceURI == Namespaces.MathML) { element = MathFactory.Create(tagName, this); } else { element = new Element { NamespaceURI = namespaceURI, NodeName = tagName, OwnerDocument = this } }; return(element); }
HTMLElement Create(string tagName) { var doc = new HTMLDocument(); return(HTMLFactory.Create(tagName, doc)); }