appendChild help?
Brought to you by:
bs_php,
nigelswinson
From: Paul / U. <pa...@tr...> - 2001-11-06 11:23:25
|
I'm using Php.XPath Version 2.1 and I'm having some trouble understanding what to pass into appendChild as the node. Could someone give me a simple example of appending a child to a node. e.g. file contents are <root></root> $xml = new XPath("$filename"); $xml->appendData("/root[1]", "blah" ); What do I put in instead of "blah" to add a node called blah? Paul www.nostalgiagoggles.com |