Node.IsDefaultNamespace method

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

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

public bool IsDefaultNamespace(String packageURI)
packageURIStringA String representing the package 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 package, or not.

See Also