Re: NSXMLParser and dtds
Re: NSXMLParser and dtds
- Subject: Re: NSXMLParser and dtds
- From: Alastair Houghton <email@hidden>
- Date: Sat, 8 Nov 2003 09:30:25 +0000
On 7 Nov 2003, at 20:07, Roarke Lynch wrote:
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.
AFAIK, DTDs are SGML and *not* XML (XML is an application of SGML, but
it only supports a small subset of SGML syntax), so you wouldn't be
able to parse them with an XML parser. If you need similar
functionality, you'll need an XML Schema. On the W3C site, there
appear to be some links to programs to translate DTDs into XML Schema
form, so you might like to take a look at those.
Kind regards,
Alastair.
_______________________________________________
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.