Re: NSXMLParser and dtds (UPDATE)
Re: NSXMLParser and dtds (UPDATE)
- Subject: Re: NSXMLParser and dtds (UPDATE)
- From: Roarke Lynch <email@hidden>
- Date: Sat, 8 Nov 2003 00:44:06 -0500
I guess it was presumptuous of me to assume that I could just jump
right in and parse a DTD from w3. I missed that the declarations have
to be within the Doc Type Declaration. Well I fixed that, but
NSXMLParser continues to fail me, but now it's raising a
exc_bad_access. I am creating and running the the parser thusly,
documentParser is an iVar:
documentParser = [[NSXMLParser alloc] initWithContentsOfURL:[NSURL
fileURLWithPath:_filename]];
[documentParser setDelegate:self];
[documentParser setShouldProcessNamespaces:NO];
[documentParser setShouldReportNamespacePrefixes:NO];
[documentParser setShouldResolveExternalEntities:NO];
[documentParser parse];
My delegate does nothing but log the calls it receives from the parser,
but i crash and get this readout:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
Thread 0 Crashed:
#0 0x90006f40 in strlen (strlen + 32)
#1 0x909f591c in +[NSString stringWithUTF8String:] (+[NSString
stringWithUTF8String:] + 36)
#2 0x90aa71dc in _entityDecl (_entityDecl + 104)
#3 0x94a444cc in xmlParseEntityDecl (xmlParseEntityDecl + 872)
#4 0x94a480ec in xmlParseMarkupDecl (xmlParseMarkupDecl + 72)
#5 0x94a49fbc in xmlParseDocTypeDecl (xmlParseDocTypeDecl + 612)
#6 0x94a4cff8 in xmlParseDocument (xmlParseDocument + 792)
#7 0x94a50c18 in xmlSAXUserParseMemory (xmlSAXUserParseMemory + 84)
#8 0x90aa6fc0 in -[NSXMLParser parse] (-[NSXMLParser parse] + 104)
#9 0x005fca68 in -[fileController parseFile:] (fileController.m:68)
#10 0x005fc828 in -[fileController openFile:] (fileController.m:40)
#11 0x92e779d0 in -[NSApplication sendAction:to:from:]
(-[NSApplication sendAction:to:from:] + 108)
#12 0x92e7e754 in -[NSControl sendAction:to:] (-[NSControl
sendAction:to:] + 96)
#13 0x92eb8958 in -[NSCell _sendActionFrom:] (-[NSCell
_sendActionFrom:] + 156)
#14 0x92e58470 in -[NSCell trackMouse:inRect:ofView:untilMouseUp:]
(-[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 1020)
#15 0x92ec9558 in -[NSButtonCell
trackMouse:inRect:ofView:untilMouseUp:] (-[NSButtonCell
trackMouse:inRect:ofView:untilMouseUp:] + 564)
#16 0x92e8e7bc in -[NSControl mouseDown:] (-[NSControl mouseDown:] +
520)
#17 0x92e02c78 in -[NSWindow sendEvent:] (-[NSWindow sendEvent:] +
4324)
#18 0x92df534c in -[NSApplication sendEvent:] (-[NSApplication
sendEvent:] + 3772)
#19 0x92dfd754 in -[NSApplication run] (-[NSApplication run] + 576)
#20 0x92eb9a1c in NSApplicationMain (NSApplicationMain + 464)
#21 0x000b9f74 in main (main.m:13)
#22 0x00001afc in start (start + 444)
#23 0x00001970 in start (start + 48)
Any clues?
Roarke Lynch
-------------------------------
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.