get_node_attrs: Convert XML node attributes (and optionally content) to a...

View source: R/rough_convert.R

get_node_attrsR Documentation

Convert XML node attributes (and optionally content) to a list

Description

This function extends 'xml2::xml_attrs()', by adding the option to add the node content as an additional key 'content' to the list created by 'xml2::xml_attrs()'.

Usage

get_node_attrs(nodes, add_content = F)

Arguments

nodes

an 'xml2' 'nodeset'

add_content

a boolean

Value

A list of character vectors


xvrdm/ggrough documentation built on March 24, 2022, 5:42 a.m.