AFXMLDocumentResponseSerializer Class Reference
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
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