$simple_element = simplexml_load_file("data.xml");foreach ( $simple_element->newsitem as $item ) { print "{$item->headline}\n"; print "{$item->byline}\n\n";}?>