AWSXMLDictionaryParser

Objective-C

@interface AWSXMLDictionaryParser : NSObject <NSCopying>

+ (AWSXMLDictionaryParser *)sharedInstance;

@property (nonatomic, assign) BOOL collapseTextNodes; // defaults to YES
@property (nonatomic, assign) BOOL stripEmptyNodes;   // defaults to YES
@property (nonatomic, assign) BOOL trimWhiteSpace;    // defaults to YES
@property (nonatomic, assign) BOOL alwaysUseArrays;   // defaults to NO
@property (nonatomic, assign) BOOL preserveComments;  // defaults to NO
@property (nonatomic, assign) BOOL wrapRootNode;      // defaults to NO

@property (nonatomic, assign) AWSXMLDictionaryAttributesMode attributesMode;
@property (nonatomic, assign) AWSXMLDictionaryNodeNameMode nodeNameMode;

- (NSDictionary *)dictionaryWithParser:(NSXMLParser *)parser;
- (NSDictionary *)dictionaryWithData:(NSData *)data;
- (NSDictionary *)dictionaryWithString:(NSString *)string;
- (NSDictionary *)dictionaryWithFile:(NSString *)path;

@end

Swift

class AWSXMLDictionaryParser : NSObject, NSCopying

Undocumented

  • Undocumented

    Declaration

    Objective-C

    + (AWSXMLDictionaryParser *)sharedInstance;

    Swift

    class func sharedInstance() -> AWSXMLDictionaryParser!
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL collapseTextNodes

    Swift

    var collapseTextNodes: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL stripEmptyNodes

    Swift

    var stripEmptyNodes: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL trimWhiteSpace

    Swift

    var trimWhiteSpace: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL alwaysUseArrays

    Swift

    var alwaysUseArrays: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL preserveComments

    Swift

    var preserveComments: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL wrapRootNode

    Swift

    var wrapRootNode: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) AWSXMLDictionaryAttributesMode attributesMode

    Swift

    var attributesMode: AWSXMLDictionaryAttributesMode { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) AWSXMLDictionaryNodeNameMode nodeNameMode

    Swift

    var nodeNameMode: AWSXMLDictionaryNodeNameMode { get set }
  • Undocumented

    Declaration

    Objective-C

    - (NSDictionary *)dictionaryWithParser:(NSXMLParser *)parser;

    Swift

    func dictionary(with parser: XMLParser!) -> [AnyHashable : Any]!
  • Undocumented

    Declaration

    Objective-C

    - (NSDictionary *)dictionaryWithData:(NSData *)data;

    Swift

    func dictionary(with data: Data!) -> [AnyHashable : Any]!
  • Undocumented

    Declaration

    Objective-C

    - (NSDictionary *)dictionaryWithString:(NSString *)string;

    Swift

    func dictionary(with string: String!) -> [AnyHashable : Any]!
  • Undocumented

    Declaration

    Objective-C

    - (NSDictionary *)dictionaryWithFile:(NSString *)path;

    Swift

    func dictionary(withFile path: String!) -> [AnyHashable : Any]!