1

hi i am new to iOS developement.
following is my response by web sevice in xml formart.how can i parse this string by using xml parser. plz help me

<registration><status>3</status></registration> 

thanks in advance

1 Answer 1

1

Using these method you can complete your xml parsing.Try These method.

 -(NSMutableArray *)parseXML:(NSString *)data
 -(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:    (NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict
 -(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
 -(void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.