PHP » GoLang |
login |
register |
about
|
GoLang DOMDocument::importNode
request it (348)
GoLang replacement for PHP's DOMDocument::importNode
[edit | history]
DOMDocument::importNode(PHP 5, PHP 7) DOMDocument::importNode — Import node into current document DescriptionThis function returns a copy of the node to import and associates it with the current document. Parameters
Return Values
The copied node or Errors/ExceptionsDOMException is thrown if node cannot be imported. Examples
Example #1 DOMDocument::importNode() example Copying nodes between documents.
<?php The above example will output: The 'new document' before copying nodes into it: <?xml version="1.0"?> <root> <someelement>text in some element</someelement> </root> The 'new document' after copying the nodes into it: <?xml version="1.0"?> <root> <someelement>text in some element</someelement> <element> <child>text in child</child> </element> </root> |
more
Recently updated
more
Most requested
more
Last requests
|