sujithkrishnan
Aug 21, 2008, 11:03 AM
Hi all..
In my app, i am parsing a XML at server.
Presently i am making use of initWithFileAtURL: method of NSXMLParser and the [parse ] method...
Please tell me how to break this line to do following..
1.Check n/w is there?? (WiFi or 3G)
2. if there.. make a Http connection..
3. If successful, check the file at URL..
4. If there...parse it....(same method ..i guess)
(Why i cant get Exception on parse method if any of the above is not satisfied?)
It will give error , i think.....
But its better i can intimate the user exactly what the problem if i am breaking down the codes as above....
Please help
In my app, i am parsing a XML at server.
Presently i am making use of initWithFileAtURL: method of NSXMLParser and the [parse ] method...
Please tell me how to break this line to do following..
1.Check n/w is there?? (WiFi or 3G)
2. if there.. make a Http connection..
3. If successful, check the file at URL..
4. If there...parse it....(same method ..i guess)
(Why i cant get Exception on parse method if any of the above is not satisfied?)
It will give error , i think.....
But its better i can intimate the user exactly what the problem if i am breaking down the codes as above....
Please help
