Re: NSXMLParser failing w/o quotes?
Re: NSXMLParser failing w/o quotes?
- Subject: Re: NSXMLParser failing w/o quotes?
- From: Phillip Hutchings <email@hidden>
- Date: Tue, 28 Oct 2003 22:06:36 +1300
[copy to the list - I forgot to use the right email address]
On 28/10/2003, at 8:11 PM, Roarke Lynch wrote:
I am playing around with NSXMLParser and a little HTML, I have come
across an error that seems odd to me. It looks like it will crash with
and internal error (code 1) if an attribute value isn't placed within
quotes. Has anyone else noticed this or am I over looking something?
You are overlooking something - in XML an attribute MUST have quotes
around it. NSXMLParser is correct in giving an error as the XML is not
correct. You'd also encounter problems with unclosed tags (eg <br> must
be <br/>) and incorrectly nested tags (eg <b><i></b></i>).
Another thing, I remember from somewhere that attribute names must be
lowercase, and tags are case sensitive (so <B></b> is invalid)
Hope this helps.
--
Phillip Hutchings
email@hidden
http://www.sitharus.com/
_______________________________________________
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.