xml_path_to_df: Run xpath query and return attributes of the found nodes as...

Description Usage Arguments Value

View source: R/xml-helpers.R

Description

Run xpath query and return attributes of the found nodes as data frame.

Usage

1
xml_path_to_df(its_xml, path, add_nodeType = FALSE)

Arguments

its_xml

The xml tree returned by read_its_file

path

A character string. The xpath query to run

add_node_type

Logical. If TRUE a column with the node type (name) of the extracted nodes is added to the data frame. If FALSE (default) only the nodes attributes are returned as columns.

Value

A data frame. Rows correspond tho the nodes rturned from the query, columns correspond to attributes of the returned nodes.


HomeBankCode/rlena documentation built on April 8, 2020, 9:22 p.m.