--TEST-- Bug #46048 (SimpleXML top-level @attributes not part of iterator) --SKIPIF-- --FILE-- value '; $obj = simplexml_load_string($xml); print_r(get_object_vars($obj)); ?> --EXPECT-- Array ( [@attributes] => Array ( [id] => 1 ) [key] => value )