Re: iPhone: NSXMLParser problems

2010-01-06 Thread Jeremy Pereira
Trying again, the HTML markup in the previous version of this e-mail sent the size over the list limit. Apologies if the original also turns up I created a little test program to run the XML through a parser and mine worked which was a bit mystifying until I figured out what the problem is.

Re: iPhone: NSXMLParser problems

2010-01-06 Thread Eric E. Dolecki
I'm not using libXML - I'll take a look. Thanks! On Wed, Jan 6, 2010 at 6:01 AM, Chaitanya Pandit wrote: > Hi, > Are you using the libXML for parsing? > Have a look at the XMLPerformance sample code by Apple: > > http://developer.apple.com/iphone/library/samplecode/XMLPerformance/index.html > > T

Re: iPhone: NSXMLParser problems

2010-01-06 Thread Chaitanya Pandit
Hi, Are you using the libXML for parsing? Have a look at the XMLPerformance sample code by Apple: http://developer.apple.com/iphone/library/samplecode/XMLPerformance/index.html Thanks, Chaitanya Pandit Expersis Software Inc. On Jan 5, 2010, at 7:13 PM, Eric E. Dolecki wrote: > I take that back -

Re: iPhone: NSXMLParser problems

2010-01-05 Thread Eric E. Dolecki
I take that back - I was adding a header to the returned XML which already had one. If I don't do that, I don't get a parsing error, but I don't get any delegate methods fired after the parse is called. Do I need to assign a delegate someplace else besides the [parser setDelegate:self] ? On Tue,

Re: iPhone: NSXMLParser problems

2010-01-05 Thread Eric E. Dolecki
Immediately after the [parser parse] I check it: if( [parser parseError]){ NSLog(@"parse error"); } This always fires - but I think that the XML is valid. My delegate methods aren't firing at all - so I don't think it's a namespace issue. Does the code seem okay? If I dump the stringReply in

Re: iPhone: NSXMLParser problems

2010-01-05 Thread Jeremy Pereira
On 5 Jan 2010, at 05:09, Eric E. Dolecki wrote: > > - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName > namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName > attributes:(NSDictionary *)attributeDict { > > NSLog(@"didStartElement"); > > //not sure ho

iPhone: NSXMLParser problems

2010-01-04 Thread Eric E. Dolecki
I am an XML parsing noob, but I do it all the time in AS3, etc. I have the following methods... I was expecting something to be called in the delegate methods, but I don't get anything. Shouldn't I be getting something... although the Yahoo! API is supposed to return XML, it's really a weird bastar