DomNode->add_namespace(no version information, might be only in CVS) DomNode->add_namespace -- Adds a namespace declaration to a node说明class DOMNode {bool add_namespace ( string uri, string prefix ) } This method adds a namespace declaration to a node.
Migrating to PHP 5You can set the namespace URI and prefix of a DOMElement or a DOMAttr at creation time by using DOMDocument->createElementNS() or DOMDocument->createAttributeNS().
| ||