Helper to convert R list to xml node (character representation).
to_xml_list(x, name, kids, indent = " ", escape = "\n")
a list to convert
name of the node to create
a list containing children xml nodes elements (each elements should come from to_xml_list)
indent used for kids when provided. Default is " ".
escape used for kids when provided. Default is "\n".
it acts as_list but value returned is different, with attributes expanded to sublists rather than recovered as attributes