Re: AW: appendChild() something I fail to understand
Brought to you by:
bs_php,
nigelswinson
From: Luc Saint-E. <lu...@sa...> - 2002-01-17 09:49:07
|
Thanks Jan, Its exactly where my error was.. thanks a lot.... At 10:14 17/01/02 +0100, you wrote: >Instead of: > > > $xPath->appendChild('/connectes[1]', 'user'); > >You need to get the path to the new Child: > > $newchild=$xPath->appendChild('/connectes[1]', 'user'); > >Then you can work with it: > > $attributes['name'] = $user_name; > $attributes['intime'] = time(); > $xPath->setAttributes($newchild, $attributes); > >That should do it, I guess > >Jan |