New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse "Content-type: application/xml" using xmlTreeParse #128

leeper opened this Issue Aug 7, 2014 · 1 comment


None yet
2 participants

leeper commented Aug 7, 2014

I'm encountering an API whose response (out of GET) looks like:

  Status: 200
  Content-type: application/xml; charset=utf-8
  Size: 103 B

Apparently content currently only handles a body that is text/xml, but as far as I can tell application/xml is substantively the same and (from an R perspective) would be handled the same as text/xml.

Can content be modified to handle this in the same way as text/xml?


This comment has been minimized.


hadley commented Aug 8, 2014

Yes, that should be easy. In the interim, you can do content(r, type = "text/xml")

@hadley hadley closed this in 5e96d87 Aug 22, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment