xml2 (version 1.3.6)

xml_type: 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

Run this code
x <- read_xml(" a  ")
xml_type(x)
xml_type(xml_contents(x))

Run the code above in your browser using DataLab