Re: Bug in importFromString() ????
Brought to you by:
bs_php,
nigelswinson
From: Sam B. <bs...@us...> - 2002-05-14 16:03:50
|
Hi Jan, It's not a bug. appendChild() and replaceData() need a valid XML string as second parameter: E.g. $xpath->appendChild("/root[1]","<TEST/>"); The main advantage (and reason) is that it's now possable to append any valid XML (not just a single child) to the doc. E.g. $xPath->appendChild("/root[1]"', '<CC> bla bla <DD dd="d"> foo</DD> <EE/> </CC>'); The return value of appendChild() and replaceData() are currently bool. But it would make sens if they would return the abs. Xpath string of the inserted node. (Something to do). -- Sam Blum <bs...@us...> =========================== For the most recent version of PHP.XPath and an archive of this list visit: http://sourceforge.net/projects/phpxpath |