• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSXMLParser and dtds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSXMLParser and dtds
      • From: Roarke Lynch <email@hidden>
References: 
 >Xcode 1.0.1 through Software Update (From: Laurent Daudelin <email@hidden>)
 >Re: Xcode 1.0.1 through Software Update (From: Robert Nicholson <email@hidden>)
 >NSXMLParser and dtds (From: Roarke Lynch <email@hidden>)

  • Prev by Date: Re: Parameter lists
  • Next by Date: Re: Controller Layer and Automatic Key-Value Observing
  • Previous by thread: Re: NSXMLParser and dtds (UPDATE)
  • Next by thread: Re: NSXMLParser and dtds
  • Index(es):
    • Date
    • Thread