Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI
- qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict {
- [pathStack appendString:elementName];
- NSString *fullPath = [self upperFirst:localName];
- if ([fullPathStack count] == 0) {
- [fullPathStack addObject:fullPath];
- } else {
- [fullPathStack addObject:[[fullPathStack lastObject] stringByAppendingString: fullPath]];
- }
- [fullPath release];
- contents = [[NSMutableString alloc] init];
- [contentsStack addObject:contents];
- [contents release];
- if ([delegatesStack count] == 0) {
- MCXmlParserDelegateEntry *de = [[MCXmlParserDelegateEntry alloc] init];
- de.prefix = @"";
- de.delegate = self;
- de.added = false;
- [self pushDelegate: de];
- [de release];
- } else {
- MCXmlParserDelegateEntry *de = [[MCXmlParserDelegateEntry alloc] initWithDelegate: currentDelegate];
- [self pushDelegate: de];
- [de release];
- }
- [self dispatchPath: @"begin" attributes: attributeDict value: @""];
- }
Add Comment
Please, Sign In to add comment