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