PHP Manual
Prev |  | Next

# DomNode->set_namespace

(no version information, might be only in CVS)

DomNode->set_namespace -- Sets namespace of a node.

## Description

void DomNode->set_namespace ( string uri [, string prefix])

Sets the namespace of a node to `uri`. If there is already a namespace declaration with the same uri in one of the parent nodes of the node, the prefix of this is taken, otherwise it will take the one provided in the optional parameter `prefix` or generate a random one.

See also DomDocument_create_element_ns(), DomNode_add_namespace()

Prev | Home | Next
DomNode->set_name | Up | DomNode->unlink_node