xattr {reutils}R Documentation

Extract the attributes of XML nodes

Description

Extract the attributes of XML nodes

Usage

xattr(doc, path, name, as = "character", default = NA_character_, ...)

Arguments

doc

An object of class XMLInternalDocument.

path

An XPath expression.

name

Name of the attribute to be extracted.

as

Mode of return value (character, integer, numeric).

default

Default return value.

...

Arguments passed to xpathApply.


[Package reutils version 0.2.3 Index]