Creates an XmlAttribute with the specified name.
[Visual Basic] Overloads Overridable Public Function CreateAttribute( _ ByVal name As String _ ) As XmlAttribute [C#] public virtual XmlAttribute CreateAttribute( string name ); [C++] public: virtual XmlAttribute* CreateAttribute( String* name ); [JScript] public function CreateAttribute( name : String ) : XmlAttribute;
The new XmlAttribute.
The XmlAttribute instance can then be set on an Element using the SetAttributeNode method. To create an attribute with a qualified name and namespace URI, use the other CreateAttribute method.
XmlDocument Class | XmlDocument Members | System.NewXml Namespace | XmlDocument.CreateAttribute Overload List