Closed hlapp closed 8 years ago
The httr package changed its default xml parser from XML to xml2 (& msybe the default of content became parsed instead of text I think). This should be easy to fix (but maybe not easy enough to do from my phone), https://github.com/ropensci/RNeXML/blob/master/R/nexml_read.R#L45 should have as = "text"
in the call to content
...
read_xml
is whathttr::content()
calls to parse text/xml documents.Apparently
nexml_read()
expectsXMLInternalDocument
orXMLInternalNode
, notxml_document
orxml_node
. I can't figure out how to coerce the latter into the former (usingas()
results in an unsupported coercion error).Can this be fixed somehow? Otherwise we're back to have to write NeXML documents pulled from APIs to temporary files first before handing them off to nexml_read().