title: Cocoa: NSXMLParser - howto resolve entities defined in DTD
body: <p>I use NSXMLParser to parse large XML files-- going good BUT :)
  I cant get the parser to resolve the external entities from the DTD.</p>
  
  <p>I googled and read documentation and older mails...
  and I did set parser.shouldResolveExternalEntities = YES</p>
  
  <p>I do get:
  - (NSData *)parser:(AQXMLParser *)parser resolveExternalEntityName:(NSString *)name systemID:(NSString *)systemID
  but I have no idea what to return...
  the entities are defined in the DTD...</p>
  
  <p>if I could get the folowing for the entries in the DTD, I would just build a table myself
  - (void)parser:(AQXMLParser *)parser foundInternalEntityDeclarationWithName:(NSString *)name value:(NSString *)value;</p>
  
  <p>Still, shouldnt NSXMLParser do entity substitution for me?
  somehow... :)</p>
  
  <p>In any case, I have no clue as to how to proceed</p>
  
  <hr>
  
  <p>cross posted @ cocoa-dev@lists.apple.com</p>