fxml_getUniqueElements {flatxml} | R Documentation |
Handling flat XML files
Description
Returns the unique XML elements included in an XML document.
Usage
fxml_getUniqueElements(xmlflat.df)
Arguments
xmlflat.df |
A flat XML dataframe created with |
Value
A vector with all the names of the elements included in the XML document xmlflat.df
. Every tag is only returned once, even if it occurs multiple times in the document. The return vector is empty (NULL
) if no elements exist.
Author(s)
Joachim Zuckarelli joachim@zuckarelli.de
See Also
Examples
# Load example file with population data from United Nations Statistics Division
# and create flat dataframe
example <- system.file("worldpopulation.xml", package="flatxml")
xml.dataframe <- fxml_importXMLFlat(example)
# Identify the unique XML elements
fxml_getUniqueElements(xml.dataframe)
[Package flatxml version 0.1.1 Index]