Posted by David Gillen on 07/16/07 09:36
Hello.
I'm looking to create xml like the following
<node>
<otherNode>foo</otherNode>
<otherNode>bar</otherNode>
<otherNode>moo</otherNode>
</node>
via the simple xml interface.
Unfortunately I cannot figure out how to create multiple nodes with the same
name as children of the parent, sibling as it were. Is this actually possible
using PHPs simple xml extension?
Doing
$node->otherNode = foo;
$node->otherNode = bar;
etc just overwrite the previous value.
Thanks,
D.
--
Fermat was right.
Navigation:
[Reply to this message]
|