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

Comments

Projects
None yet
1 participant
@jennybc
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?.

@jennybc jennybc referenced this issue Oct 26, 2016

Open

as_xml() #1

@jimhester jimhester closed this in 1f820d8 Dec 19, 2016

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