<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>I don't know exactly why, but it works like a charm if you add this condition:

&lt;code&gt;
if (currentItemNode.firstChild.childNodes.length &gt; 3 ) {
	var itemDate = currentItemNode.firstChild.childNodes[3].getAttribute(&quot;title&quot;);
&lt;/code&gt;

(and the closing curling bracket at the very end)</body>
  <body-html>&lt;p&gt;I don't know exactly why, but it works like a charm if you add this condition:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
&lt;br /&gt;if (currentItemNode.firstChild.childNodes.length &gt; 3 ) {
&lt;br /&gt;	var itemDate = currentItemNode.firstChild.childNodes[3].getAttribute(&quot;title&quot;);
&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;(and the closing curling bracket at the very end)&lt;/p&gt;</body-html>
  <created-at type="datetime">2008-11-14T07:58:18Z</created-at>
  <forumable-id type="integer">1</forumable-id>
  <forumable-type>Forum</forumable-type>
  <id type="integer">17592</id>
  <topic-id type="integer">9634</topic-id>
  <updated-at type="datetime">2008-11-14T07:58:18Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">49616</user-id>
</post>
