You are here

function alchemy_xml2array in Alchemy 6

Same name and namespace in other branches
  1. 7 alchemy.module \alchemy_xml2array()

Utility function to convert xml to a php array

Parameters

xml string $xmlstr:

1 call to alchemy_xml2array()
alchemy_get_elements in ./alchemy.module

File

./alchemy.module, line 226
DO NOT COMMIT TO DRUPAL CONTRIB! THIS MODULE IS FOR DEVELOPMENT ONLY.

Code

function alchemy_xml2array($xmlstr) {
  $xmlarr = new SimpleXMLElement($xmlstr);
  return $xmlarr;
}