I'm using NSXMLParser to parse an XML document which is being returned from a web service hosted remotely. The XML is valid but some of the nodes will occasionally be empty, this seems to cause NSXMLParser to fall over (NSXMLParserErrorDomain error 5) however I can't find anything on the net which would suggest that there would be an issue parsing empty nodes so I wondered if anyone else had experienced any problems with this and could confirm or deny my theory that NSXMLParser can't cope with empty tags?
My XML goes something along the lines of:
<Entry>
<Request>2</Request>
<ID>123456789</ID>
<Name></Name>
<UserName>username</UserName>
<Password>password</Password>
<SessionID>987654321</SessionID>
<Oldest></Oldest>
<Newest></Newest>
<List></List>
</Entry>
The parser throws an error when it gets to the element, it calls DidStartElement and then disappears off into the parser code and throws an error back before it calls any more delegate methods.