private function transferChildren(\DOMElement $target, $json, $namespaces, $attributes) { if (isset($json->{'#children'})) { $this->transferAttributes($target, $namespaces, $attributes); foreach ($json->{'#children'} as $value) { $name = isset($value->{'#name'}) ? $value->{'#name'} : '@'; if (substr($name, 0, 1) != '@') { $this->transferTo($target, $value); } } } }