to_xml_list: List to XML Node Conversion

View source: R/xml_utils.R

to_xml_listR Documentation

List to XML Node Conversion

Description

Helper to convert R list to xml node (character representation).

Usage

to_xml_list(x, name, kids, indent = "  ", escape = "\n")

Arguments

x

a list to convert

name

name of the node to create

kids

a list containing children xml nodes elements (each elements should come from to_xml_list)

indent

indent used for kids when provided. Default is " ".

escape

escape used for kids when provided. Default is "\n".

Details

it acts as_list but value returned is different, with attributes expanded to sublists rather than recovered as attributes


IFC documentation built on Sept. 14, 2023, 1:08 a.m.