Skip to content
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

FR: as_xml() #137

Closed
jennybc opened this issue Oct 23, 2016 · 0 comments
Closed

FR: as_xml() #137

jennybc opened this issue Oct 23, 2016 · 0 comments

Comments

@jennybc
Copy link
Member

jennybc commented Oct 23, 2016

It would be awesome to have as_xml() to enable a roundtrip with as_list().

as_list() has a limited scope and that would be just fine for the inverse. I'm really only interested in being able to create XML from simple R lists.

as_list currently only handles the four most common types of children that an element might have:

  • Other elements, converted to lists.
  • Attributes, stored as R attributes.
  • Text, stored as a character vector.

The XML package sort of has (had?) this, in the form of XML::toHTML(). This topic has also seen quite a bit of stackoverflow action: How to create xml from R objects, e.g., is there a 'listToXml' function?.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant