Re: Representational State Transfer
Re: Representational State Transfer
- Subject: Re: Representational State Transfer
- From: Ken Thomases <email@hidden>
- Date: Fri, 11 Apr 2008 17:47:00 -0500
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 (email@hidden)
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:
This email sent to email@hidden