update : 2015.11.03
php.shukuma.com검색:
|
DOMDocument::importNode(PHP 5, PHP 7) DOMDocument::importNode — Import node into current document 설명This function returns a copy of the node to import and associates it with the current document. 인수
반환값
The copied node or 오류/예외DOMException is thrown if node cannot be imported. 예제
Example #1 DOMDocument::importNode() example Copying nodes between documents.
<?php 위 예제의 출력: 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> |