/**
  * Convert an XML DOMDocument or XML string to an array
  * A static facade for ease of use and backwards compatibility
  * @param DOMDocument|string $inputXml The XML to convert to an array
  * @param array $config The configuration to use for the conversion
  * @return array An array representation of the input XML
  */
 public static function &createArray($inputXml, $config = array())
 {
     $instance = new XML2Array($config);
     return $instance->buildArray($inputXml);
 }