get_namespace_uri method

get_namespace_uri

Retrieves the namespace URI associated with the specified prefix.

def get_namespace_uri(self, prefix):
    ...
Parameter Type Description
prefix str The prefix of the namespace to get.

Returns: str or None: The associated namespace URI if the prefix is registered; otherwise, None.

See Also