remove_empty_nodes {tab2xml} | R Documentation |
Remove Empty XML Nodes Recursively
Description
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.
Usage
remove_empty_nodes(node)
Arguments
node |
An XML node of class 'xml_node' from the 'xml2' package. |
Value
The function modifies the XML structure in place and does not return a value.
[Package tab2xml version 1.1.0 Index]