This function accepts an xml_nodeset
and searches for all './/records'
in the document to format into a single tidy tbl_df
.
extract_records_from_xml_nodeset(
nodeset,
object_name_append = FALSE,
object_name_as_col = FALSE
)
xml_nodeset
; nodeset to have records extracted into a tbl_df
logical
; whether to include the object type
(e.g. Account or Contact) as part of the column names (e.g. Account.Name).
logical
; whether to include the object type
(e.g. Account or Contact) as a new column.
tbl_df
parsed from the supplied xml_nodeset