remove_empty_nodes | R Documentation |
This function traverses an XML node and removes any empty child nodes. A node is considered empty if it has no children, no text content, and no attributes.
remove_empty_nodes(node)
node |
An XML node of class 'xml_node' from the 'xml2' package. |
The function modifies the XML structure in place and does not return a value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.