You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had assumed it was not implemented due to the fact it is so trivial. Simply use simplexml_load_file(), for example, and cast it to an array and use the ArrayReader.
@applibs Don't be harsh to everyone. @abcarroll Is right, XML can contain a really generic data structure with attributes and elements, so there is no way we can provide an easy to use the reader for that.
If your XML is quite simple and you don't need to access attributes, you can do this:
Activity
abcarroll commentedon Dec 28, 2019
I had assumed it was not implemented due to the fact it is so trivial. Simply use
simplexml_load_file(), for example, and cast it to an array and use the ArrayReader.applibs commentedon Dec 29, 2019
If its soo simple should you complete your library with xml reader please?
Baachi commentedon Apr 16, 2020
@applibs Don't be harsh to everyone. @abcarroll Is right, XML can contain a really generic data structure with attributes and elements, so there is no way we can provide an easy to use the reader for that.
If your XML is quite simple and you don't need to access attributes, you can do this:
If you need a more advanced approach, you need to this your own. You can use the DOM PHP extension or the XmlReader from the PHP core.
https://www.php.net/manual/en/dom.examples.php
https://www.php.net/manual/en/class.xmlreader.php