• 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
NSXMLParser and dtds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSXMLParser and dtds
      • From: Alastair Houghton <email@hidden>
    • Re: NSXMLParser and dtds (UPDATE)
      • 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>)

  • Prev by Date: Fwd: Parameter lists
  • Next by Date: Re: Parameter lists
  • Previous by thread: Re: Xcode 1.0.1 through Software Update
  • Next by thread: Re: NSXMLParser and dtds (UPDATE)
  • Index(es):
    • Date
    • Thread