Inherits from AFHTTPResponseSerializer : NSObject
Declared in AFURLResponseSerialization.h

Overview

AFXMLDocumentResponseSerializer is a subclass of AFHTTPResponseSerializer that validates and decodes XML responses as an NSXMLDocument objects.

By default, AFXMLDocumentResponseSerializer accepts the following MIME types, which includes the official standard, application/xml, as well as other commonly-used types:

  • application/xml
  • text/xml

Tasks

  • – init
  •   options

    Input and output options specifically intended for NSXMLDocument objects. For possible values, see the NSJSONSerialization documentation section “NSJSONReadingOptions”. 0 by default.

    property
  • + serializerWithXMLDocumentOptions:

    Creates and returns an XML document serializer with the specified options.

Properties

options

@property (nonatomic, assign) NSUInteger options
Discussion

Input and output options specifically intended for NSXMLDocument objects. For possible values, see the NSJSONSerialization documentation section “NSJSONReadingOptions”. 0 by default.

Declared In

AFURLResponseSerialization.h

Class Methods

serializerWithXMLDocumentOptions:

+ (instancetype)serializerWithXMLDocumentOptions:(NSUInteger)mask
Discussion

Creates and returns an XML document serializer with the specified options.

Parameters

mask

The XML document options.

Declared In

AFURLResponseSerialization.h

Instance Methods

init

- (instancetype)init