Creates an System.Xml.XmlAttribute with the specified XmlNode.Prefix, XmlDocument.LocalName, and XmlNode.NamespaceURI.
- prefix
- The prefix of the attribute (if any). String.Empty and null are equivalent.
- localName
- The local name of the attribute.
- namespaceURI
- The namespace URI of the attribute (if any). String.Empty and null are equivalent. If prefix is xmlns, then this parameter must be http://www.w3.org/2000/xmlns/; otherwise an exception is thrown.
The new XmlAttribute.
The XmlAttribute can be added to an System.Xml.XmlElement using the XmlElement.SetAttributeNode(XmlAttribute) method.
This method is a Microsoft extension to the Document Object Model (DOM).