Visit Mozilla.org

DOM:document.namespaceURI

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

namespaceURI returns the XML namespace for the current document.

[edit] Syntax

NSURI = document.namespaceURI 

[edit] Parameters

  • NSURI is a string containing the namespace.

[edit] Notes

The DOM does not handle or enforce namespace validation per se. It is up to the DOM application to do any validation necessary. Note too that the namespace prefix, once it is associated with a particular node, cannot be changed.

[edit] Specification

DOM Level 2 Core: namespaceURI