Skip to content

Instantly share code, notes, and snippets.

@MarkNijhof
Created August 22, 2010 12:38
Show Gist options
  • Save MarkNijhof/543727 to your computer and use it in GitHub Desktop.
Save MarkNijhof/543727 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<output>
<blogpost>
<url>http://cre8ivethought.com/blog/2010/08/22/importing-comments-into-disqus/</url>
<title>Title of the post</title>
<guid>{the guid that Disqus has for the post, often it is just the url}</guid>
<comments>
<comment>
<isAnon>1</isAnon>
<score>1</score>
<name>Mark Nijhof</name>
<email>[email protected]</email>
<url>http://cre8ivethought.com/blog/index</url>
<ip>127.0.0.1</ip>
<date>2010-08-22 14:35:00</date>
<gmt>2010-08-22 14:35:00</gmt>
<comment>This is the actual comment body
Actual newlines are preserved, so if you have html formatting in the comments then you should try to convert that to plain text formatting.
You can just append as many comments in the <comments> node and as many blog posts in the <output> node.
</comment>
</comment>
</comments>
</blogpost>
</output>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment