views:

39

answers:

1

Hi, i am working with web services these days ,and with all xml files that i am parsing things are fine ,but with the last one the famous method "stringWithContentsOfURL" returns empty data. Why?

A: 

Most likely your URL references a non-existing file, or the content of the file can not be encoded as a NSString.

Claus Broch
the content is not empty ,so i have doubt about encoding format
Dingua
@dingua: Try using dataWithContentsofURL: If that will download, then it is most likely encoding problems.
Claus Broch
@Claus Broch:yes that it was..now all things are going right ,thk u
Dingua