AFNetworking XML Request Issue
问题 I'm using AFNetworking-2 with JSON response and it was working fine and now I have to convert it to XML instead of using JSON because the server response is in XML. After I've searched I reached with this code but it is not working. With Charles I found the request is wrong "Fail to parse data (org.xml.sax.SAXParseException: Content not allowed is prolog)" Please where would be my issue? My code: NSString *urlString = BaseURLString; NSURL *url = [[NSURL alloc] initWithString:urlString];