|
DOMDocument::adoptNodeTransfer a node from another document Description
public DOMNodefalse DOMDocument::adoptNode(DOMNode
$node )Transfer a node from another document into the current document. Parameters
Return Values
The node that was transfered, or Errors/Exceptions
ExamplesExample #1 DOMDocument::adoptNode example Transfers the hello element from the first document to the second one.
The above example will output: <?xml version="1.0"?> <container/> <?xml version="1.0"?> <root><hello><world/></hello></root> See Also
|