I am trying process data retrieved with SimpleXML and am having great difficulty. I have read numerous threads here about this subject, they all LOOK like what I am doing, but mine are not working. Here's what I've got:\[code\]<ROOT> <ROWS COMP_ID="165462"> <ROWS COMP_ID="165463"></ROOT>\[/code\]My code:\[code\]$xml = simplexml_load_file('10.xml');foreach( $xml->ROWS as $comp_row ) { $id = $comp_row->COMP_ID;}\[/code\]As I step through this in my debugger, I can see that $id is not set to the string value of COMP_ID, but becomes a SimpleXMLElement itself containing the CLASSNAME object. I've tried many variations of addressing this attribute but none work, including $comp_row->attributes()->COMP_ID and others.What am I missing?