Does anyone work with phpXML library from www.phpxml.org?
| From: | Serge Yatsenko | Date: | Thu, 06 Sep 2001 03:05:32 +0000 |
| Subject: | Does anyone work with phpXML library from www.phpxml.org? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-66143@lists.php.net to get a copy of this message | ||
Hello all,
If anyone works with phpXML library please explain me why add_node method
doesn't work for me? It returns the full path for the new added node but
there is no new node in the resulting XML!?
For example:
-----------------------------------------------------------------
$xml = new XML("some.xml"); // some.xml is just <root/>
$nn = $xml->add_node("root", "node"); // $nn returns root/node[1]
// output
echo "<pre>";
echo $xml->get_file(); // this one shows original <root/> WITHOUT the new
node
echo "</pre>";
-----------------------------------------------------------------
Thank you,
Serge.