create_attribute_ns method

create_attribute_ns

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.

Returns

The Attr.

def create_attribute_ns(self, namespace_uri, qualified_name):
    ...
ParameterTypeDescription
namespace_uristrThe namespace URI of the attribute.
qualified_namestris a string containing the name of the attribute.

See Also