A simple class to convert an xml to array
A simple class to convert an array to xml
One common need when working in PHP is a way to convert an XML document into a serializable array. If you ever tried to serialize() and then unserialize() a SimpleXML or DOMDocument object, you know what I’m talking about.
Convert PHP array to XML with support for attributes and CDATA
Small & simple easy PHP function to convert xml to array using YQL.