IsDefaultNamespace

Node.IsDefaultNamespace method

The isDefaultNamespace() method of the Node interface accepts a namespace URI as an argument. It returns a boolean value that is true if the namespace is the default namespace on the given node and false if not.

Note: The default namespace of an HTML element is always “”. For a SVG element, it is set by the xmlns attribute.

public bool IsDefaultNamespace(string namespaceURI)
Parameter Type Description
namespaceURI String A string representing the namespace against which the element will be checked.

Return Value

A boolean value that holds the return value true or false, indicating if the parameter is the default namespace, or not.

See Also