GitHub copy of LaLit's XML2Array and Array2XML

3.0.3 2017-09-05 06:37 UTC

This package is auto-updated.

Last update: 2024-12-07 20:22:54 UTC


README

Scrutinizer Code Quality Scrutinizer Coverage Scrutinizer Build Status Travid Build Status Latest Stable Version Packagist

LaLit's XML2Array / Array2XML

\digitickets\LaLit allows you to convert XML to a PHP array and back again.

The base code was developed by Lalit Patel and is available from http://www.lalit.org/lab/

XML2Array : http://www.lalit.org/lab/convert-xml-to-array-in-php-xml2array/ Array2XML : http://www.lalit.org/lab/convert-php-array-to-xml-with-attributes/

I've added additional unit tests via a generator (so probably too many tests)

Version History

Please read the CHANGELOG document.

@todo

  1. Add support for <!-- comments --> within the XML, such that when converting from XML -> PHP -> XML, the comments are preserved.