Re: Xml
Re: Xml
- Subject: Re: Xml
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Tue, 4 Nov 2008 19:52:43 +0100
On 4 Nov 2008, at 18:58, Klaus Backert wrote:
Am 04.11.2008 um 17:49 schrieb Gerriet M. Denkmann:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE [
<!ELEMENT geometry (vertices)>
<!ATTLIST geometry version CDATA "1.0">
<!ELEMENT vertices (vertex)*>
<!ELEMENT vertex EMPTY> <---- new as of today
<!ATTLIST vertex name CDATA "none">
<!ATTLIST vertex x CDATA "nan">
<!ATTLIST vertex y CDATA "nan">
<!ATTLIST vertex z CDATA "nan">
]>
<geometry version="1.3">
<vertices>
<vertex name="0" x="0" y="9" z="0"/>
<vertex name="1" x="0" y="-9" z="0"/>
</vertices>
</geometry>
Looks better, but both problems still persist: "no DTD found!" and
NSXMLParserNAMERequiredError.
Any ideas?
Kind regards,
Gerriet.
AFAIK the document type declaration needs the name of the root
element:
<!DOCTYPE geometry [ ... ]>
Yes, this makes all the difference.
I added: [ theDTD setName: @"geometry" ] and now everything is ok.
Thanks a lot!
BTW, I think, this has nothing to do with Cocoa-Dev ;-)
Well, is NSXMLNode not part of Cocoa?
Anyway, the problem is fixed, the moderator did not complain, and I
am content.
Herzliche Grüße aus Oldenburg.
Und nochmals vielen Dank!
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Xml (From: "Gerriet M. Denkmann" <email@hidden>) |
| >Re: Xml (From: Klaus Backert <email@hidden>) |
| >Re: Xml (From: "Gerriet M. Denkmann" <email@hidden>) |
| >Re: Xml (From: Klaus Backert <email@hidden>) |