xml file with Authentication, how to parse

Discussion in 'iOS Programming' started by vineesh, Aug 9, 2012.

  1. macrumors newbie

    Joined:
    Jan 22, 2012
    Location:
    Cochin
    #1
    I have a XML url with username and password.
    How Authenticate this url and Parse ?

    How to use the parsed file stored in to database, SQLite ?
     
  2. vineesh, Aug 13, 2012
    Last edited by a moderator: Aug 13, 2012

    thread starter macrumors newbie

    Joined:
    Jan 22, 2012
    Location:
    Cochin
    #2
    I solved my issue. Thanks for all to spent time for me.

    Code:
    -(void)connection:(NSURLConnection*)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
    {
        NSURLCredential *myCreds=[[NSURLCredential alloc] initWithUser:@"bigbirdapiuser" password:@"JQi5aPjge7me" persistence:NO];
        [challenge.sender useCredential:myCreds forAuthenticationChallenge:challenge];
    }
     

Share This Page