NSXMLParser and dtds
NSXMLParser and dtds
- Subject: NSXMLParser and dtds
- From: Roarke Lynch <email@hidden>
- Date: Fri, 7 Nov 2003 15:07:56 -0500
Is there something I'm missing about using NSXMLParser? I can get it to
properly parse an xhtml file, thats no problem. But when I try to parse
a dtd for xhtml-transitional or xhtml-frameset from w3 it fails. It
always returns an error code : (NSXMLParserErrorDomain 1). I am a
novice at xml but i would assume that any document I get from w3 would
be parse-able. I am not doing anything with the code yet, I just set up
a delegate that responds and logs all of the calls from the parser I
get the following readout:
2003-11-07 14:59:50.678 medium_front[498] start doc
2003-11-07 14:59:50.679 medium_front[498] found comment:
Extensible HTML version 1.0 Frameset DTD
This is the same as HTML 4 Frameset except for
changes due to the differences between XML and SGML.
Namespace =
http://www.w3.org/1999/xhtml
For further information, see:
http://www.w3.org/TR/xhtml1
Copyright (c) 1998-2002 W3C (MIT, INRIA, Keio),
All Rights Reserved.
This DTD module is identified by the PUBLIC and SYSTEM identifiers:
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
SYSTEM "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"
$Revision: 1.2 $
$Date: 2002/08/01 18:37:55 $
2003-11-07 14:59:50.679 medium_front[498] found comment:
================ Character mnemonic entities =========================
2003-11-07 14:59:50.680 medium_front[498] **ERROR 1 RAISED** (Error
NSXMLParserErrorDomain 1)
2003-11-07 14:59:50.680 medium_front[498] **ERROR 1 RAISED** (Error
NSXMLParserErrorDomain 1)
2003-11-07 14:59:50.680 medium_front[498] end document
I cannot figure out what It it having trouble with b/c the when an
error is sent to the delegate, lineNumber and columnNumber always both
return 0.
Since I am parsing a dtd I would assume that I would get calls for
internal or external entity declarations, element declarations,
attribute declarations, etc... But i don't. I get squat.
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.