note 48646 added to ref.simplexml

From: Date: Mon, 03 Jan 2005 05:18:24 +0000
Subject: note 48646 added to ref.simplexml
Groups: php.notes 
Request: Send a blank email to php-notes+get-82632@lists.php.net to get a copy of this message
If you are looking to use SimpleXML for anything but reading XML documents, you should really reconsider, and use the XML DOM library. By the time you get enough utilities implemented in DOM to handle all the set backs in SimpleXML, you will have defeated the purpose of using SimpleXML. There are a few reasons for this, and there are already many workrounds, but the primairy issues are this 1) No complex node assignment. You cannot switch nodes or replace them. 2) No appending new child nodes 3) Whenever you do something like $new_node = $xml_doc->node you will always get a reference even if you use a clone method, which will crash the script. Other than that, its a great tool for reading docs. ---- Manual Page -- http://www.php.net/manual/en/ref.simplexml.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48646 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48646&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48646&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48646&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48646&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48646&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48646&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48646&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#82632) next »