HELP!! Please... Pear XML Tree

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
Vmusic
Forum Newbie
Posts: 10
Joined: Sat Sep 07, 2002 8:45 am
Location: Columbus, Ohio

HELP!! Please... Pear XML Tree

Post by Vmusic »

Hi,
Well lets see am I the only that has to write to an existing XML
document ?!?!?!


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 parameter array $path is?
I've tried a bunch of stuff. I can't find any 'real' examples of this exact
function call.

There is soooOOOoooo little documentation on pear classes and
objects
. Does anybody understand them ???


Has anyone actually used these classes and this specific
funtion - insertChild - 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. A tutorial on creating a new XML document doens't help here I need actual examples of the insertChild function from the PEAR XML Tree package

H E L P
Thanks In Advance
Vmusic
Post Reply