Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML parser for objective C



yes there is a NSXMLDocumentTidyHTML flag that will format the HTML into XHTML for parsing. I haven't had an issue yet with the HTML pages i have been parsing.

I have been using it to parse HTML pages for data for my Cocoa UI that is in my iPhoto plugin.. Parses like

"//input[@type='checkbox' and @name='public_gallery']"

are life savers.. (of course i have function that isCheckBoXChecked that looks for a checkbox and returns bool if a box is checked or not.).

Scott

On Sep 30, 2005, at 7:40 AM, Andy Lee wrote:

On Sep 30, 2005, at 10:33 AM, Scott Andrew wrote:

NSXML will also take HTML, which i use it for alot with project


Out of curiosity: does NSXML handle malformed HTML, or HTML that isn't XHTML? Does it try to recover from syntax errors (like browsers do), or does it reject the whole document?


--Andy

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/scottandrew% 40adelphia.net


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >XML parser for objective C (From: David Chan <email@hidden>)
 >Re: XML parser for objective C (From: Niko Matsakis <email@hidden>)
 >Re: XML parser for objective C (From: "Alexander v. Below" <email@hidden>)
 >Re: XML parser for objective C (From: Bryan Bonczek <email@hidden>)
 >Re: XML parser for objective C (From: Scott Andrew <email@hidden>)
 >Re: XML parser for objective C (From: Andy Lee <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.