I'm using NSXMLParser to read an XML document from a server via initiWithContentsOfURL. This works just fine under Leopard. I can read and parse the data just fine, but under Tiger, I get an empty document error: NSXMLParserErrorDomain = 4 (Empty document). There are several posts in the archives about problems with NSXMLParser, but nothing suggesting a Tiger bug leading to an empty document. (Actually one thread about it, but referring to initWithData and not calling it a bug) Unless someone thinks there's something wrong with my code, I'm going to file a bug with Apple.
Here is my code: NSString* urlString = [str stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]; NSXMLParser* locationData = [[[XMLParser alloc] initWithContentsOfURL:[NSURL URLWithString:urlString]] autorelease]; [locationData setDelegate:self]; [locationData parse]; NSError* err = [locationData parseError]; <---Empty document error str is the url as an NSString. The documents encoding is actually Latin1, I pasted the last one I tried here. I've tried a few encodings, but they all fail with the same error. Any ideas? -- "My break-dancing days are over, but there's always the funky chicken" --The Full Monty _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]