Note that you must provide the namespace if you want to access an attribute of a non-default namespace:
Consider the following example:
<?php
$xml = <<<XML
<?xml version="1.0"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">
<Table Foo="Bar" ss:ExpandedColumnCount="7">
</Table>
</Workbook>
XML;
$sxml = new SimpleXMLElement($xml);
var_dump((string) $sxml->Table[0]['Foo']);
var_dump((int) $sxml->Table[0]['ExpandedColumnCount']);
var_dump((int) $sxml->Table[0]->attributes('ss', TRUE)->ExpandedColumnCount);
?>