ZF2-269: ATOM generation problem

Issue Type: Bug Created: 2012-04-17T09:04:41.000+0000 Last Updated: 2012-10-08T20:15:20.000+0000 Status: Closed Fix version(s): Reporter: Cyril Glapa (kyriog) Assignee: Ralph Schindler (ralph) Tags: - Zend\Feed

  • Atom
  • Renderer
  • Zend_Feed

Related issues: Attachments:


There's a bug when using export('atom') method on a Zend\Feed\Writer\Feed object. This feed is generated by a new Feed() and contain Entry objects added by addEntry() method.

Here is the stack trace:

The problem appears when Feed generated contain some chars.

First, if an entry contain an ampersand (which is not used for special chars, for example if it's used in a company name), it seems that $dom->loadXml() fails and $dom->documentElement is null.

Moreover, some special chars generated by "&" (like "&"nbsp; or "&"raquo; ) can't be parsed by loadXml() and raise the same error. But some over special chars works (like "&"amp; )... This issue can be solved if we use number based chars (like "&"#160; instead of "&"nbsp; ).

Can you fix it, please? :)


Posted by Ralph Schindler (ralph) on 2012-10-08T20:15:20.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit:

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.