The (tag) name of an xml element.
Modify the (tag) name of an element
xml_name(x, ns = character()) xml_name(x, ns = character()) <- value xml_set_name(x, value, ns = character())
A document, node, or node set.
Optionally, a named vector giving prefix-url pairs, as produced
a character vector with replacement name.
A character vector.
x <- read_xml("<bar>123</bar>") xml_name(x)#>  "bar"#>  "baz" "foo"