Posted by Claudio on 10/06/45 11:10
> php.net/dom
??
Like this?
---
try {
$dom = new DOMDocument();
$config =
$dom->appendChild($dom->importNode(dom_import_simplexml($this->configXML),true));
$config->appendChild( $dom->createElement(($mode? 'softactive':'active')) );
$this->configXML = simplexml_import_dom($config);
} catch(Exception $e) {}
It ist strange... It runs one time, the second time I receive the following
error.
Warning: DOMDocument::importNode() [function.importNode]: Cannot import:
Node Type Not Supported in ...
Warning: appendChild() expects parameter 1 to be DOMNode, boolean given in
....
Fatal error: Call to a member function appendChild() on a non-object in ...
Navigation:
[Reply to this message]
|