Re: Tiger bug on NSXMLParser?

2008-04-29 Thread Lorenzo Thurman
On Tue, Apr 29, 2008 at 7:36 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > On 29 Apr '08, at 6:27 AM, Lorenzo Thurman wrote: > > I tried loading the XML into an NSString using > > initWithContentsOfURL:encoding:error using Latin1 encoding. Under Leopard, > > the XML is read in just fine. I can ou

Re: Tiger bug on NSXMLParser?

2008-04-29 Thread Jens Alfke
On 29 Apr '08, at 6:27 AM, Lorenzo Thurman wrote: I tried loading the XML into an NSString using initWithContentsOfURL:encoding:error using Latin1 encoding. Under Leopard, the XML is read in just fine. I can output the resulting string in the debugger and it looks good and is parsed just f

Re: Tiger bug on NSXMLParser?

2008-04-29 Thread Lorenzo Thurman
Have you tried loading the data first, and then parsing it? Does the data > > look reasonable, i.e. can you convert it to an NSString using the expected > > encoding? > > > I tried loading the XML into an NSString using initWithContentsOfURL:encoding:error using Latin1 encoding. Under Leopard, the

Re: Tiger bug on NSXMLParser?

2008-04-28 Thread Lorenzo Thurman
On Mon, Apr 28, 2008 at 8:57 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > On 28 Apr '08, at 6:42 PM, Lorenzo Thurman wrote: > > NSString* urlString = [str stringByAddingPercentEscapesUsingEncoding: > > NSUTF8StringEncoding]; > > > > You shouldn't need this step if 'str' is already a string repre

Re: Tiger bug on NSXMLParser?

2008-04-28 Thread Jens Alfke
On 28 Apr '08, at 6:42 PM, Lorenzo Thurman wrote: NSString* urlString = [str stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]; You shouldn't need this step if 'str' is already a string representation of the URL. For example, it would convert a "?" or "#" in the URL into a

Tiger bug on NSXMLParser?

2008-04-28 Thread Lorenzo Thurman
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 a