$xml must be an instance of SimpleXMLElement
$xml must be an instance of SimpleXMLElement

The $xml parameter must be an instance of SimpleXMLElement in SimpleXML2FlatArray::__construct().

kristofferhagen/SimpleXML2FlatArray