Esempio n. 1
0
 /**
  * Returns an associative array with attributes of an XML element.
  *
  * @param SimpleXMLElement	XML-Object
  *
  * @return array			Attributes
  */
 protected function getAttributes(XMLObj $xmlObj)
 {
     $attributesArray = array();
     $attributes = $xmlObj->attributes();
     foreach ($attributes as $key => $val) {
         $attributesArray[$key] = (string) $val;
     }
     return $attributesArray;
 }