<?php
$nid = 100;
<Blogger>
$iid = '<$BlogItemNumber$>';
$nid++;
$node=array();
$node'title'=<<<ENDOFSTRING
<$BlogItemTitle$>
ENDOFSTRING;
if (trim($node'title') == "") $node'title' = "title";
$node'body'=<<<ENDOFSTRING
<$BlogItemBody$>
ENDOFSTRING;
$node'date'=strtotime('<$BlogItemDateTime$>');
$node'number'='<$BlogItemNumber$>';
$node'permalink'='<$BlogItemPermalinkURL$>';
echo "INSERT INTO node (nid, type, title, uid, created, changed, comment, promote, teaser, body, revisions, format)
VALUES(".$nid.", 'story', '".addslashes($node'title')."', 1, ".$node'date'.", ".$node'date'.", 2, 1, , '".addslashes($node'body')."', , 3);\n\n";
<BlogItemComments>
$comment=array();
$comment'number'='<$BlogCommentNumber$>';
$comment'body'=<<<ENDOFSTRING
<$BlogCommentBody$>
ENDOFSTRING;
$comment'author'=<<<ENDOFSTRING
<$BlogCommentAuthor$>
ENDOFSTRING;
$comment'date'=strtotime('<$BlogCommentDateTime$>');
echo "insert into comments (nid, subject, comment, hostname, timestamp, thread, name) values(".$nid.", 'comment', '".addslashes($comment'body')."', '127.0.0.1', '".$comment'date'."', '1/', '".addslashes($comment'author')."');\n\n";
</BlogItemComments>
</Blogger>
?>