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

NSXMLParser failing w/o quotes?


  • Subject: NSXMLParser failing w/o quotes?
  • From: Roarke Lynch <email@hidden>
  • Date: Tue, 28 Oct 2003 02:11:39 -0500

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?

if i try to parse:
<HTML>
<HEAD>
</HEAD>
<BODY>
a little <A href="someurl.html"> text </A>
<TABLE border=0>
</TABLE>
</BODY>
</HTML>

i get an NSXMLParserErrorDomain error (which is code 1 and in the header is an internal error). but if i place quotes around the 0 (i.e "0") it works just fine.
Looking at the all the messages passed to the delegate, it ends the area tag, and then crashes after finding whitespace characters. It never tells the delegate that it is starting the table element. However, the whitespace is not issue, it is encountered previously without causing an error.

Roarke Lynch
-------------------------------
email@hidden
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSXMLParser failing w/o quotes?
      • From: Phillip Hutchings <email@hidden>
    • Re: NSXMLParser failing w/o quotes?
      • From: Prachi Gauriar <email@hidden>
References: 
 >Xcode questions? (From: "Laurent Daudelin" <email@hidden>)

  • Prev by Date: Displaying Realtime Data
  • Next by Date: implementing text completion
  • Previous by thread: Re: Xcode questions?
  • Next by thread: Re: NSXMLParser failing w/o quotes?
  • Index(es):
    • Date
    • Thread