<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>&lt;p&gt;Today I ran into an issue where an NSXMLParser would not fire the parserDidEndDocument delegate method.  I was parsing XML stored locally and it turned out to be an issue with a trailing newline at the end of the document.&lt;/p&gt;

&lt;p&gt;To fix it, I made sure there was no newline at the end of the final closing XML tag.  This seems lame of NSXMLParser or is there a convention I am just not aware of?&lt;/p&gt;

&lt;p&gt;Nevertheless, I hope this helps someone.&lt;/p&gt;</body>
  <classification>Blog</classification>
  <created-at type="datetime">2009-08-26T16:09:19Z</created-at>
  <id type="integer">50</id>
  <permalink>nsxmlparser-doesn-t-fire-parserdidenddocument</permalink>
  <title>NSXMLParser doesn't fire - (void)parserDidEndDocument:(NSXMLParser *)parser</title>
  <updated-at type="datetime">2009-08-26T16:09:19Z</updated-at>
  <user-id type="integer">2</user-id>
</post>
