• 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: Getting NSXMLDTD to initialize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting NSXMLDTD to initialize


  • Subject: Re: Getting NSXMLDTD to initialize
  • From: Fritz Anderson <email@hidden>
  • Date: Wed, 9 Nov 2005 17:07:43 -0600

On 9 Nov 2005, at 4:07 PM, Fritz Anderson wrote:

I have the following DTD:
======
<!ELEMENT kanjitime (movie*)>
<!ELEMENT movie (mark*)>
<!ATTLIST movie
     name    CDATA   #REQUIRED
     scale   CDATA   #DEFAULT "600">
<!ELEMENT mark (#PCDATA)>
<!ATTLIST mark
     time    CDATA   #REQUIRED>

Further experiment shows me my problem: My reading of a tutorial site on DTDs led me to believe that attributes with default values must be tagged with #DEFAULT. It turns out that the parser in NSXMLDTD does not like that tag, and stops parsing -- silently -- when it encounters it. Recasting the ATTLIST declaration as


<!ATTLIST movie
     name    CDATA   #REQUIRED
     scale   CDATA   "600">

solved my problem.

	-- F
 --
Step into Xcode: Mac OS X Development
Impending, from Addison-Wesley
http://six.manoverboard.org/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Getting NSXMLDTD to initialize (From: Will Mason <email@hidden>)
 >Re: Getting NSXMLDTD to initialize (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: "Continuous Spell checking" feature to NSTextField?
  • Next by Date: Re: Flipping Text
  • Previous by thread: Re: Getting NSXMLDTD to initialize
  • Next by thread: CoreData Threading docs/advice?
  • Index(es):
    • Date
    • Thread