Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (32 sloc) 1.31 KB
//
// MGTwitterXMLParser.h
// MGTwitterEngine
//
// Created by Matt Gemmell on 18/02/2008.
// Copyright 2008 Instinctive Code.
//
#import "MGTwitterEngineGlobalHeader.h"
#import "MGTwitterParserDelegate.h"
@interface MGTwitterXMLParser : NSObject <NSXMLParserDelegate> {
__weak NSObject <MGTwitterParserDelegate> *delegate; // weak ref
NSString *identifier;
MGTwitterRequestType requestType;
MGTwitterResponseType responseType;
NSData *xml;
NSMutableArray *parsedObjects;
NSXMLParser *parser;
__weak NSMutableDictionary *currentNode;
NSString *lastOpenedElement;
}
+ (id)parserWithXML:(NSData *)theXML delegate:(NSObject<MGTwitterParserDelegate> *)theDelegate
connectionIdentifier:(NSString *)identifier requestType:(MGTwitterRequestType)reqType
responseType:(MGTwitterResponseType)respType;
- (id)initWithXML:(NSData *)theXML delegate:(NSObject<MGTwitterParserDelegate> *)theDelegate
connectionIdentifier:(NSString *)identifier requestType:(MGTwitterRequestType)reqType
responseType:(MGTwitterResponseType)respType;
- (NSString *)lastOpenedElement;
- (void)setLastOpenedElement:(NSString *)value;
- (void)addSource;
- (void)parser:(NSXMLParser *)theParser didEndElement:(NSString *)elementName
namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName;
@end
Something went wrong with that request. Please try again.