//创建一个新 thread节点
$thread = $guestbook->createElement('thread'); 
$threads->appendChild($thread);
//在新的 thread节点上创建 title标签
$title = $guestbook->createElement('title');
$title->appendChild($guestbook->createTextNode($_POST['title']));
$thread->appendChild($title);
//在新的 thread节点上创建 author标签
$author = $guestbook->createElement('author');
$author->appendChild($guestbook->createTextNode($_POST['author']));
$thread->appendChild($author);想把post过来的内容存储在xml里,如何把post过来的title,author,thread分行存储?
(我不清楚是不是修改上面的代码)