my $c = $p->addNewChild($p->lookupNamespaceURI('foo'), 'child');