-
Notifications
You must be signed in to change notification settings - Fork 83
as_xml_document()
not recreating text nodes properly
#274
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
Comments
A bit more minimal reprex is cat(as.character(
xml2::as_xml_document(list(a = list("foo", list(b = list("bar")), "baz")))
))
#> <?xml version="1.0" encoding="UTF-8"?>
#> <a>baz<b>bar</b></a> Created on 2020-03-09 by the reprex package (v0.3.0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description and Expected Result
A round-trip from xml to list and back again messes up text nodes.
Expected:
as_xml_document(as_list(x))
to give backx
, but text nodes are malformed.Reproducible Example
Created on 2019-08-23 by the reprex package (v0.3.0)
Session Info
The text was updated successfully, but these errors were encountered: