array_to_dom based on dom_varimport: a simple PHP extension to convert nested arrays into DOMDocument