xml_type: Determine the type of a node.

View source: R/xml_type.R

xml_typeR Documentation

Determine the type of a node.

Description

Determine the type of a node.

Usage

xml_type(x)

Arguments

x

A document, node, or node set.

Examples

x <- read_xml("<foo> a <b /> <![CDATA[ blah]]></foo>")
xml_type(x)
xml_type(xml_contents(x))

hadley/xml2 documentation built on Jan. 10, 2024, 3:52 p.m.