I am doing xml parser on iphone.
example xml is
<root>
<child att="attributename">
</child>
</root>
another xml is
<root>
<child att="attributename" />
</root>
i am using this method for end element.
- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName
namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName{
if ([elementName isEqualToString:@"root"]) {
return;
}
if ([elementName isEqualToString:@""]){
}
}
in second if condition what value i need to pass.... child or any another string....
because end xml tag not </child>
.....
Please help me out...
Thanks in advance