note 35996 deleted from function.xml-parse-into-struct by sobak
| From: | sobak@php.net | Date: | Sat, 10 Dec 2016 23:27:12 +0000 |
| Subject: | note 35996 deleted from function.xml-parse-into-struct by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208469@lists.php.net to get a copy of this message | ||
Note Submitter: Eric
----
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. :)