cloudhead/dorothy — Issue #10: index.builder Generating partial feed (xml is truncated)
Author: ylansegal
Created: 2011-11-10 00:22:59+00:00
State: open

I have been trying to figure this out for a while. Using the build in index.builder for the atom feed generated an xml file that is truncated and thus not valid xml.

For example: (Only showing 1 entry for brevity):

```

Laptop Battery Depot Blog

http://www.laptopbatterydepot.com/blog
2010-10-19

Laptop Battery Depot

HP Exiting PC Business

http://www.laptopbatterydepot.com/blog/blog/2011/08/25/hp-exiting-pc-business/
2011-08-25
2011-08-25

<p>There&rsquo;s big news in the PC market. Hewlett Packard, the world&rsquo;s largest PC maker, has announced plans to spin off its PC business and end it recently acquired TouchPad tablet and smartphone business and instead focus on software and services&hellip;</p>

<p>There&rsquo;s big news in the PC market. Hewlett Packard, the world&rsquo;s largest PC maker, has announced plans to spin off its PC business and end it recently acquired TouchPad tablet and smartphone business and instead focus on software and services.</p>

<p><img style="float: right; border: 5px #ffffff solid;" src="/assets/lbd/blog/ZZ0F97B074.jpg" alt="ZZ0F97B074.jpg" width="135" height="85" />According to a report in Bloomberg, HP has been “aiming to lessen its dependence on lower-margin PCs, where growth has stalled as consumers flock to tablet-style computers like those made by Apple.”</p>

<p>Apple was the only maker in the top 5 PC vendors of Western Europe to experience growth in computer shipments. Apple also just surpassed HP in mobile PC sales, mostly due to the highly successful iPad. HP had its own iPad alternative, but consumers didn&rsquo;t find it as attractive as HP hoped. Retailers had indicated that sales of the TouchPad were flat. With the news and major drop in prices, however, they are at least moving off the shelves now with the news.</p>

<p>If you have an <a href="http://www.laptopbatterydepot.com/lbd/products/HP">HP laptop</a> or TouchPad, the company is indicating that current customers won&rsquo;t be abandoned or forgotten. At the same time, some HP owners are going ahead and stocking up on an extra battery or other HP products to ensure availability.</p>

<p>At <a title="Laptop Battery Depot" href="http://www.laptopbatterydepot.com/">Laptop Battery Depot</a>, we have a wide array of laptop batteries for your HP, Apple or any other major brand you may have so that you can purchase a replacement battery or backup battery for when there is a need.</p>

<p>Currently, we are offering $15 off any battery and free priority shipping. Take advantage of our offer while it lasts!</p>

```

After lots of trial and error, I can say that the problem seems to be the article.summary and article.content. If commenting out both on the builder template, I get a valid (although less useful) atom feed:

```

Laptop Battery Depot Blog

http://www.laptopbatterydepot.com/blog
2010-10-19

Laptop Battery Depot

HP Exiting PC Business

http://www.laptopbatterydepot.com/blog/blog/2011/08/25/hp-exiting-pc-business/
2011-08-25
2011-08-25

```

I can't figure out why builder seems to be truncating the feed, and I see no problems on the output to help me out. I have tried adding the article.summary and/or content as CDATA, but doesn't make a difference.

I appreciate any pointers in the right direction so I can get a full feed going.