Inherits from AFHTTPResponseSerializer : NSObject
Declared in AFURLResponseSerialization.h
AFURLResponseSerialization.m

Overview

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

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

  • application/xml
  • text/xml

Tasks

Other Methods

Other Methods

Properties

options

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

@property (nonatomic, assign) NSUInteger options

Declared In

AFURLResponseSerialization.h

Class Methods

serializer

Creates and returns a serializer with default configuration.

+ (instancetype)serializer

Declared In

AFURLResponseSerialization.h

serializerWithXMLDocumentOptions:

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

+ (instancetype)serializerWithXMLDocumentOptions:(NSUInteger)mask

Parameters

mask

The XML document options.

Declared In

AFURLResponseSerialization.h