Creates an XmlElement instance in this context.
[Visual Basic] Overloads Public Function CreateElement( _ ByVal name As String, _ ByVal ns As String _ ) As XmlElement [C#] public XmlElement CreateElement( string name, string ns ); [C++] public: XmlElement* CreateElement( String* name, String* ns ); [JScript] public function CreateElement( name : String, ns : String ) : XmlElement;
An XmlElement instance with the given name and namespace.
Exception Type | Condition |
---|---|
ArgumentException | If name is not a valid identifier. |
The identifier of the returned element has the given name and namespace URI. The element has no parent, child nodes, or attributes.
XmlContext Class | XmlContext Members | System.Xml Namespace | XmlContext.CreateElement Overload List | AddElement