protected function insertIntegerDomdocument($parent, $k, $v, $fn)
{
// A DOMDocument can have multiple root nodes.
// Algorithm 1:
return $this->attachNodes($parent, $v->childNodes, $fn);
// Algorithm 2:
// return $this->attachNodes($parent, $v->documentElement, $fn);
}