xml_type: Determine the type of a node.

Description Usage Arguments Examples

View source: R/xml_type.R

Description

Determine the type of a node.

Usage

1

Arguments

x

A document, node, or node set.

Examples

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

xml2 documentation built on May 30, 2017, 3:43 a.m.