Skip to content

Instantly share code, notes, and snippets.

@pcantrell
Created July 13, 2016 06:22
Show Gist options
  • Select an option

  • Save pcantrell/771ebb53e6acf02ed091c5d29a1ca941 to your computer and use it in GitHub Desktop.

Select an option

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