note 44443 deleted from function.domxml-new-doc by didou

From: Date: Thu, 04 Aug 2005 15:45:12 +0000
Subject: note 44443 deleted from function.domxml-new-doc by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93075@lists.php.net to get a copy of this message
Note Submitter: el fru ---- well, the parameter is the version, but... what about the encoding, etc. after I have tried many things I came to next conclusion (check this): <?php $gsXML = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" . "<something />"; // it will be erased $o = domxml_open_mem($gsXML); $something = $o->document_element();//obtaining node to delete //echo("before:<pre>\n". print_r($o->dump_mem(true),true). "</pre>\n"); $something->unlink_node($something); // deleting node //echo("after:<pre>\n". print_r($o->dump_mem(true),true). "</pre>\n"); ?> in the same way you can add "DOCTYPE", etc =================================

« previous php.notes (#93075) next »