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