Fatal error: Call to undefined method SimpleXMLElement::name()

( ! ) Fatal error: Call to undefined method SimpleXMLElement::name() in /Applications/MAMP/htdocs/trunkgitnew/administrator/components/com_localise/models/language.php on line 196

should be getName