map_xml {edgarWebR} | R Documentation |
Extracts a dataframe from an xml document.
map_xml(
doc,
entries_xpath,
parts,
trim = c(),
integers = c(),
date_format = ""
)
doc |
An XML document |
entries_xpath |
an xpath locator for all starting points |
parts |
a list in the form column name = xpath locator |
trim |
a list of columns that need to have whitespace trimmed |
integers |
a list of columns that need to converted to integers |
date_format |
how dates should be parsed |
A dataframe with one row per entry and columns from parts