public function __construct(\SimpleXMLElement $xml) { $xml->registerXPathNamespace('gs', 'http://schemas.google.com/spreadsheets/2006'); $this->xml = $xml; }