Pear XML_Tree help
Posted: Sun Jun 29, 2003 4:34 pm
Hi,
I am trying to use pear's XML_Tree package. I got some of it to work. I am not creating a new XML doc from scratch. I am inserting data or a node into an existing xml document.
I am trying to use the function insertChild. The documentation says it is:(see below)
XML_Tree::&insertChild (array $path, integer $pos, mixed $child [, string $content='' [, array $attributes=array()]])
............the problem is I don't know what the path is? I'm not exactly sure what the mixed content child should be either.....I've tried a bunch of stuff. I can't find any 'real' examples of this exact function call.
Has anyone actually used these classes and this specific funtion from pear? If so... can you show me an example.
Has anyone seen a tutorial that used these classes and this specific funtion from pear? I've seen a tutorial creating a new xml doc from scratch. But that doesn't help as it did not use this exact function.
Thanks In Advance
Vmusic
[/b]
I am trying to use pear's XML_Tree package. I got some of it to work. I am not creating a new XML doc from scratch. I am inserting data or a node into an existing xml document.
I am trying to use the function insertChild. The documentation says it is:(see below)
XML_Tree::&insertChild (array $path, integer $pos, mixed $child [, string $content='' [, array $attributes=array()]])
............the problem is I don't know what the path is? I'm not exactly sure what the mixed content child should be either.....I've tried a bunch of stuff. I can't find any 'real' examples of this exact function call.
Has anyone actually used these classes and this specific funtion from pear? If so... can you show me an example.
Has anyone seen a tutorial that used these classes and this specific funtion from pear? I've seen a tutorial creating a new xml doc from scratch. But that doesn't help as it did not use this exact function.
Thanks In Advance
Vmusic
[/b]