Document.CreateAttributeNS

Document.CreateAttributeNS method

This method creates a new attribute node, and returns it. The object created is a node implementing the Attr class. The DOM does not enforce what sort of attributes can be added to a particular element in this manner.

public Attr CreateAttributeNS(string namespaceURI, string qualifiedName)
ParameterTypeDescription
namespaceURIStringThe namespace URI of the attribute.
qualifiedNameStringis a string containing the name of the attribute.

Return Value

The Attr.

See Also