xml_add_child: Add a child node to an XML target

View source: R/pugixml.R

xml_add_childR Documentation

Add a child node to an XML target

Description

Add a child node to an XML target

Usage

xml_add_child(.x, .name, ..., .where = -1, .value = NULL)

Arguments

.x

A pugi_node, pugi_xml, or a list containing one.

.name

The name of the new tag to create.

...

Named arguments for attributes, unnamed for text content.

.where

Integer; 0 to prepend, -1 to append.

.value

Optional character string to set as text content.

Value

The newly created pugi_node.


encharter documentation built on Oct. 2, 2026, 1:07 a.m.