This function accepts the output of the read_xml function (from package xml2) and returns a character vector with all non-empty nodes and all the present node attribute names. This function uses the basic structure of the function xml_structure  from xml2 package.
Arguments
- x
 characterThe output of the functionread_xmlfrom packagexml2, i.e. an object of classxml_document.- warn.empty.nodes
 logicalIfFALSE(the default) warns nothing;TRUEwarns of empty nodes.
Value
A character vector with the XML structure (non-empty nodes and all the present node attribute names).
Details
The function lists in a character vector all non-empty nodes, showing the type of data contained in the node between {} and all the present node attribute names, between []. The XML hierarchical structure is also presented, each level separated by :.
Author
Tiago Monteiro-Henriques. E-mail: tmh.dev@icloud.com.