Re: Getting NSXMLDTD to initialize
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