Home > PHP > Function > DOM XML (PHP 4) > DomNode->set_namespace()

DomNode->set_namespace()

DomNode->set_namespace - Sets namespace of a node

Syntax

DomNode->set_namespace (string $uri, string $prefix)

Arguments

  • uri - The node being appended. It can be created with e.g. DomDocument->create_element, DomDocument->create_text_nodeetc. or simply by using any other node. Note: You can not append a DOMAttributeusing this method. Use DomElement->set_attributeinstead.
  • prefix - The node being appended. It can be created with e.g. DomDocument->create_element, DomDocument->create_text_nodeetc. or simply by using any other node. Note: You can not append a DOMAttributeusing this method. Use DomElement->set_attributeinstead.

Description

Version

PHP 4.3.0

Return value