Answers

Question and Answer:

  Home  iOS Developer

⟩ Explain me how to parse xml?

Using NSXMLParser.

Create xml parser object with xml data, set its delegate , and call the parse method with parserObject.

Delegate methods getting called :

β˜› – parserDidStartDocument:

β˜› – parserDidEndDocument:

β˜› – parser:didStartElement:namespaceURI:qualifiedName:attributes:

β˜› – parser:didEndElement:namespaceURI:qualifiedName:

β˜› – parser:didStartMappingPrefix:toURI:

β˜› – parser:didEndMappingPrefix:

β˜› – parser:resolveExternalEntityName:systemID:

β˜› – parser:parseErrorOccurred:

β˜› – parser:validationErrorOccurred:

β˜› – parser:foundCharacters:

β˜› – parser:foundIgnorableWhitespace:

β˜› – parser:foundProcessingInstructionWithTarget:data:

β˜› – parser:foundComment:

β˜› – parser:foundCDATA:

 158 views

More Questions for you: