xml_add_child | R Documentation |
append xml child to node
xml_add_child(xml_node, xml_child, level, pointer = FALSE, ...)
xml_node |
xml_node |
xml_child |
xml_child |
level |
optional level, if missing the first child is picked |
pointer |
pointer |
... |
additional arguments passed to |
xml_node <- "<a><b/></a>"
xml_child <- "<c/>"
# add child to first level node
xml_add_child(xml_node, xml_child)
# add child to second level node as request
xml_node <- xml_add_child(xml_node, xml_child, level = c("b"))
# add child to third level node as request
xml_node <- xml_add_child(xml_node, "<d/>", level = c("b", "c"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.