Skip to content

Instantly share code, notes, and snippets.

@pcantrell
Created July 13, 2016 06:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcantrell/771ebb53e6acf02ed091c5d29a1ca941 to your computer and use it in GitHub Desktop.
Save pcantrell/771ebb53e6acf02ed091c5d29a1ca941 to your computer and use it in GitHub Desktop.
Siesta.enabledLogCategories = LogCategory.all
let service = Service(baseURL: myBaseURL)
service.configureTransformer("**") { (content: NSData, entity) -> NSXMLDocument? in
return try? NSXMLDocument(data: content, options: 0)
}
service.resource("foo.xml").load()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment