Mono Class Library: System.Xml.XmlDocument Overview | Members

System.Xml.XmlDocument.CreateAttribute Method

Creates an System.Xml.XmlAttribute object. [Edit]

public virtual XmlAttribute CreateAttribute (string prefix, string localName, string namespaceURI)

Parameters

prefix
a string which becomes the prefix of the returned attribute. [Edit]
localName
a string which becomes the local name of the returned attribute. [Edit]
namespaceURI
a string which becomes the namespace URI of the returned attribute. [Edit]

Returns

A new System.Xml.XmlAttribute instance whose XmlAttribute.OwnerDocument is this document. [Edit]

Remarks

Creates a new XmlAttribute instance with specified name components. localName must be a valid XML Name string.

If the prefix parameter is "xmlns" or localName is "xmlns" and the prefix is an empty string, then "http://www.w3.org/2000/xmlns/" is automatically supplied for namespace URI of the returned node. Similarly, "http://www.w3.org/XML/1998/namespace" is supplied if the prefix is "xml".

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0