• 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: NSXMLParser failing w/o quotes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Xcode questions? (From: "Laurent Daudelin" <email@hidden>)
 >NSXMLParser failing w/o quotes? (From: Roarke Lynch <email@hidden>)

  • Prev by Date: Re: NSXMLParser failing w/o quotes?
  • Next by Date: How to get Mac OS X System preference window from cocoa application
  • Previous by thread: Re: NSXMLParser failing w/o quotes?
  • Next by thread: Text Smoothing on Panther
  • Index(es):
    • Date
    • Thread