ID: 29426
User updated by: php at peterrobins dot co dot uk
Reported By: php at peterrobins dot co dot uk
-Status: No Feedback
+Status: Closed
Bug Type: SimpleXML related
Operating System: Linux 2.4
PHP Version: 5.0.0
New Comment:
I have now revisited this using 5.0.3. Adding a node still
doesn't work, but the manual page no longer claims that it
does! Because of this, I've changed the status to closed.
However, the manual page is still misleading, as it says
(Example 7) The object allows for manipulation of all of
its elements which is not really true. There are many
limitations, as stated in this bug report and in the
comment from brcavanagh, which says much the same thing.
I'd suggest the manual page be updated to specify that
SimpleXML is primarily for reading and simple updates, and
is not really intended for more complex updating or
deletion of nodes/nodesets.
Previous Comments:
[2005-02-22 01:00:08] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to Open.
[2005-02-15 00:33:45] [EMAIL PROTECTED]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with ?php and ends with ?,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
[2004-10-06 07:14:06] matt dot bevan at marginsoftware dot com
I am also in the position where I need to be able to
create and insert a SimpleXMLElement before or after an
arbitrary SimpleXMLElement, then remove the previous
instance. This is to move XML elements from one location
in an XML file into another.
I'll likely be switching to/from a DOM object to
accomplish this, however.
[2004-09-19 17:40:18] phpbugs at ilibi dot com
Either the documentation for simplexml should be
clarified about exactly what can and can not be added/
edited. Or the ability to add nodes should be added to
simplexml.
[2004-08-08 01:18:36] cyberlot at cyberlot dot net
Confirming this bug exists, Have the same problem, I need to add to a
simplexml object on the fly and can't
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/29426
--
Edit this bug report at http://bugs.php.net/?id=29426edit=1