FluentDOM\Transformer\JSONx::appendChildNodes PHP Method

appendChildNodes() private method

private appendChildNodes ( DOMElement $target, DOMElement $source, boolean $addNameAttribute = FALSE )
$target DOMElement
$source DOMElement
$addNameAttribute boolean
    private function appendChildNodes(\DOMElement $target, \DOMElement $source, $addNameAttribute = FALSE)
    {
        $xpath = new Xpath($source->ownerDocument);
        /** @var \DOMElement $child */
        foreach ($xpath('*', $source) as $child) {
            $this->addNode($target, $child, $addNameAttribute);
        }
    }