SunshinePHP Developer Conference 2015

DomNode->set_namespace

(PHP 4 >= 4.3.0)

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(), and domnode_add_namespace()

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top