xml = new DOMDocument(); $this->xml->preserveWhiteSpace = FALSE; $this->xml->load($path); $this->xpath = new DOMXPath($this->xml); $this->xpath->registerNameSpace('office', Calc_Reader::NS_OFFICE); $this->xpath->registerNameSpace('table', Calc_Reader::NS_TABLE); } /** * Return the rows in the spreadsheet as a DOMNodeList * WARNING: this means ALL the rows, in all the sheets, not just the first sheet * * @return DOMNodeList */ function getRows () { $query = '//table:table-row'; $ret = $this->xpath->query($query); unset($query); return $ret; } } error_reporting($erCalc_Reader); unset ($erCalc_Reader);