The namespace to be set must be already defined in one of the node's ancestors.

xml_set_namespace(.x, prefix = "", uri = "")

Arguments

.x

a node

prefix

The namespace prefix to use

uri

The namespace URI to use

Value

the node (invisibly)