protected function adoptChildren(DOMElement $branch)
	{
		while ($branch->firstChild->firstChild)
		{
			$branch->appendChild($branch->firstChild->removeChild($branch->firstChild->firstChild));
		}
		$branch->removeChild($branch->firstChild);
	}
protected function adoptChildren(DOMElement $branch)
	{
		while ($branch->firstChild->firstChild)
		{
			$branch->appendChild($branch->firstChild->removeChild($branch->firstChild->firstChild));
		}
		$branch->removeChild($branch->firstChild);
	}
protected function adoptChildren ( DOMElement $ branch ) { while ( $ branch -> firstChild -> firstChild ) { $ branch -> appendChild ( $ branch -> firstChild -> removeChild ( $ branch -> firstChild -> firstChild ) ) ; } $ branch -> removeChild ( $ branch -> firstChild ) ; }
Adopt the children of given element's only child

@param  DOMElement $branch
@return void
Adopt the children of given element s only child