<html>
<body>
$note=<<<XML
<note>
<to>George</to>
<from>John</from>
<heading>Reminder</heading>
<body>Do not forget the meeting!</body>
</note>
XML;
$xml = new SimpleXMLIterator($note);
// 返回到第一个元素
$xml->rewind();
// 移动到下一个元素
$xml->next();
// 返回当前元素
var_dump($xml->current());
</body>
</html>