All notable changes to array-to-xml
will be documented in this file
- require PHP 8+
- drop support for PHP 7.x
- convert syntax to PHP 8
- add escapable colons in custom keys (#151)
- add support for PHP 8
- add $xmlStandalone as a new parameter (#148)
- add support for dropping XML declaration (#145)
- add support for custom keys (#140)
- add XML prettification (#136)
- fix XML structure when using numeric keys
- do not interpret "0" as a non-empty value
- drop support for PHP 7.1
- add
setDomProperties
- add support for numeric keys
- fix tests
- drop support for PHP 7.0
- added support for mixed content
- fix for
DomExeception
s being thrown
- remove control characters
- fix setting attributes
- allow wrapping data in a CDATA section
- add fix for multiple empty/self-closing child elements
- add support for naming a root element and adding properties to it
- avoid pulling in the snapshot package on install
- PHP 7 is now required
- allow encoding and version to be set
- attributes and value can be set in SimpleXMLElement style
- attributes and value can be set in SimpleXMLElement style
- fixed an error when there is a special character to the value set in _value
- added
toDom
method
- Fixed typo in the name of the
addSequentialNode
-function
- Add ability to use attributes
- Add support to collection arrays and dynamically XML convertion when keys are numeric
- handle values with special characters
- use DOMDocument for better validation
- added an option to opt out of the automatic space replacement
- initial release