<!DOCTYPE html>
<html>
<body>
<?php
$xml=simplexml_load_file("../demo/xml/note.xml") or die("错误:无法创建对象");
echo $xml->to . "<br>";
echo $xml->from . "<br>";
echo $xml->heading . "<br>";
echo $xml->body;
?>
</body>
</html>