#import <XMLToObjectParser.h>

Public Member Functions | |
| (NSArray *) | - items |
| (id) | - parseXMLAtURL:fromNodeName:toObject:parseError: |
| Parses the XML document returned from the given URL into an array of instances of the named class. | |
| (id) | - parseXMLData:fromNodeName:toObject:parseError: |
| Parses the XML contained in the given data object into an array of instances of the named class. | |
Protected Attributes | |
| NSString * | nodeName |
| Name of the target XML node(s) to be converted to object(s). | |
| NSString * | className |
| Name of the Obj-C class to be instantiated for each matched XML node. | |
| NSMutableArray * | items |
| Array of objects created from the XML data. | |
| NSObject * | item |
| Object being populated during XML parsing; an instance of the given className. | |
| NSString * | currentNodeName |
| Name of the current XML node; used during parsing. | |
| NSMutableString * | currentNodeContent |
| Mutable string that collects the contents of the current XML node; used during parsing. | |
| NSMutableDictionary * | dropioErrorUserInfo |
| Dictionary containing Drop.io error properties; used as NSError.userInfo. | |
Properties | |
| NSError * | dropioError |
| NSError object describing the Drop.io error, if an error occurs during XML parsing. | |
| - (NSArray *) items |
Referenced by parseXMLData:fromNodeName:toObject:parseError:.
| - (id) parseXMLAtURL: | (NSURL *) | url | ||
| fromNodeName: | (NSString *) | aNodeName | ||
| toObject: | (NSString *) | aClassName | ||
| parseError: | (NSError **) | pError | ||
Parses the XML document returned from the given URL into an array of instances of the named class.
One instance is created for each XML node that matches the given node name. The named class must define properties whose names match the child XML nodes of the named target XML nodes when converted to "camelCase", or else it must implement setValue:forUndefinedKey:.
| url | NSURL of the XML document to be parsed. | |
| aNodeName | NSString containing the name of XML nodes to be matched in the XML document. | |
| aClassName | NSString containing the name of an NSObject subclass that will be instantiated once for each matched XML node in the XML document. | |
| pError | Output parameter pointing to an NSError object on return if any errors occur while loading and parsing the XML document. Pass nil to ignore errors. |
Referenced by DropIO::parseResponseFromURL:fromNodeName:toObject:parseError:.
| - (id) parseXMLData: | (NSData *) | data | ||
| fromNodeName: | (NSString *) | aNodeName | ||
| toObject: | (NSString *) | aClassName | ||
| parseError: | (NSError **) | pError | ||
Parses the XML contained in the given data object into an array of instances of the named class.
One instance is created for each XML node that matches the given node name. The named class must define properties whose names match the child XML nodes of the named target XML nodes when converted to "camelCase", or else it must implement setValue:forUndefinedKey:.
| data | NSData object containing the XML data to be parsed. | |
| aNodeName | NSString containing the name of XML nodes to be matched in the XML data. | |
| aClassName | NSString containing the name of an NSObject subclass that will be instantiated once for each matched XML node in the XML data. | |
| pError | Output parameter pointing to an NSError object on return if any errors occur while loading and parsing the XML data. Pass nil to ignore errors. |
Referenced by DropIO::parseResponse:fromNodeName:toObject:parseError:, and parseXMLAtURL:fromNodeName:toObject:parseError:.
Name of the Obj-C class to be instantiated for each matched XML node.
Referenced by parseXMLData:fromNodeName:toObject:parseError:.
- (NSMutableString*) currentNodeContent [protected] |
Mutable string that collects the contents of the current XML node; used during parsing.
- (NSString*) currentNodeName [protected] |
Name of the current XML node; used during parsing.
- (NSMutableDictionary*) dropioErrorUserInfo [protected] |
Dictionary containing Drop.io error properties; used as NSError.userInfo.
Referenced by parseXMLData:fromNodeName:toObject:parseError:.
- (NSObject*) item [protected] |
Object being populated during XML parsing; an instance of the given className.
- (NSArray *) items [protected] |
Array of objects created from the XML data.
Referenced by DropIO::parseResponse:fromNodeName:toObject:parseError:, DropIO::parseResponseFromURL:fromNodeName:toObject:parseError:, and parseXMLData:fromNodeName:toObject:parseError:.
Name of the target XML node(s) to be converted to object(s).
Referenced by parseXMLData:fromNodeName:toObject:parseError:.
- (NSError *) dropioError [read, write, retain] |
NSError object describing the Drop.io error, if an error occurs during XML parsing.
1.5.8