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

?xml_add_child needs examples #434

Open
MichaelChirico opened this issue Dec 19, 2023 · 0 comments
Open

?xml_add_child needs examples #434

MichaelChirico opened this issue Dec 19, 2023 · 0 comments

Comments

@MichaelChirico
Copy link
Contributor

I'm trying to use xml_add_child() for the first time, and don't know how to use it. It's clear it should take an XML object and a new child as input, but how exactly should they be structured? Can I pass text as the child, or does it need to be an XML object?

I consulted the docs, where I was met with:

xml_add_child(.x, .value, ..., .where = length(xml_children(.x)), .copy = TRUE)
.value: node to insert.

And no examples. Not very helpful.

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

No branches or pull requests

2 participants