Creates an element with the specified name.
[Visual Basic] Overloads Overridable Public Function CreateElement( _ ByVal name As String _ ) As XmlElement [C#] public virtual XmlElement CreateElement( string name ); [C++] public: virtual XmlElement* CreateElement( String* name ); [JScript] public function CreateElement( name : String ) : XmlElement;
The new XmlElement.
Note that the instance returned implements the XmlElement interface, so attributes can be specified directly on the returned object. In addition, if there are known attributes with default values, XmlAttribute nodes representing them are automatically created and attached to the element.
XmlDocument Class | XmlDocument Members | System.NewXml Namespace | XmlDocument.CreateElement Overload List