Re: NSXMLParserErrorDomain 4
Re: NSXMLParserErrorDomain 4
- Subject: Re: NSXMLParserErrorDomain 4
- From: Brett Powley <email@hidden>
- Date: Fri, 24 Feb 2006 10:27:52 +1100
Hi Steven,
Have you tested whether the contents of your file really are being
read? You could try something like:
NSData *data = [xmlURL resourceDataUsingCache:NO];
to see if it does like your URL.
Cheers,
Brett
On 23/02/2006, at 1:34 PM, Chris Parker wrote:
On Feb 22, 2006, at 6:23 PM, Steven LeMaire wrote:
I am getting this error trying to parse a simple xml doc.
Can someone provide more info, with what is going wrong ?
The xml file is local on my HD, it is very simple. The code is
very simple.
NSString *filePath = @"/parsetest.xml";
NSURL *xmlURL = [NSURL fileURLWithPath:filePath];
NSXMLParser *myParser = [[NSXMLParser alloc]
initWithContentsOfURL:xmlURL];
I set the delegate to self, send a message to parse, which returns
a bool value of NO,
and get this error when I send a parserError message.
Well, error code 4 is NSXMLParserEmptyDocumentError - how simple is
your document? :)
.chris
--------------------------------------------------------------
Brett Powley -- PhD Candidate
Centre for Language Technology, Macquarie University, Australia
w: http://www.ics.mq.edu.au/~bpowley
faciendi plures libros nullus est finis
frequensque meditatio carnis adflictio est
--------------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden