<?php

class Excel_XML_Import {

    public 
$data = array();

    public function 
__construct($xml$skipfirst false) {
        if (empty(
$xml)) {
            throw new 
Exception('Need XML');
        } else {
            
$i   0;
            
$xml = new SimpleXMLElement($xml);

            foreach (
$xml->Worksheet->Table->Row as $row) {
                if (
=== $i && $skipfirst) {
                    
$skipfirst false;
                    continue;
                }

                foreach (
$row->Cell as $cell) {
                    
$this->data[$i][] = (string) $cell->Data;
                }

                
$i++;
            }
        }
        return 
$this->data;
    }

}

/*
$xml = file_get_contents('foobar.xml');

try {
    $i    = new Excel_XML_Import($xml, true);
    $data = $i->data;
    print_r($data);
} catch(Exception $e) {
    print $e->getMessage() ."\n";
}
*/