note 35996 added to function.xml-parse-into-struct
| From: | Eric at rn2 dot php dot net | Date: | Mon, 22 Sep 2003 12:50:02 +0000 |
| Subject: | note 35996 added to function.xml-parse-into-struct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-56897@lists.php.net to get a copy of this message | ||
Yet another XML -> nested array converter.
This is based on http://www.devdump.com/phpxml.php,
but adds features while reducing code complexity.
It can take several forms of input:
- string (buffer)
- file handle (pipe)
- file name -or-
- URL
It can optionally collapse arrays of same-named tags to a single element if there is only one tag
with a given name.
It can optionally preserve tag order for XML applications where position is significant, such as
CallXML.
XMLParser.obj at:
http://eric.pollmann.net/work/public_domain/
Corrections and suggestions enthusiastically welcomed. :)
----
Manual Page -- http://www.php.net/manual/en/function.xml-parse-into-struct.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35996
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35996&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35996&report=yes