On Apr 11, 2008, at 6:08 AM, Jonathan Relf wrote:
I can see that having an NSXMLDocument would allow me to easily read
in
XML data from a web source using initWithContentsOfURL: but if I'm
wanting make a request of a URL first and then get the XML reply back
into an object, is there a better choice of data structure to use than
NSXMLDocument for sending the initial request to the URL?
I think you probably want to use NSURLConnection and friends to
accumulate the XML data into an NSMutableData object. Then,
initialize an NSXMLDocument with its initWithData:options:error: method.
Cheers,
Ken
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]