Learn R Programming

nonmemica (version 0.9.1)

xpath: Evaluate Xpath Expression

Description

Evaluates an xpath expression.

Coerces x to xml_document and evaluates.

Evaluates an xpath expression for a given document.

Usage

xpath(x, ...)

# S3 method for default xpath(x, ...)

# S3 method for xml_document xpath(x, xpath, ...)

Arguments

x

xml_document

...

passed arguments

xpath

xpath expression to evaluate

Value

vector

vector

Methods (by class)

  • default: default method

  • xml_document: xml_document method

Details

The resulting nodeset is scavenged for text, and coerced to best of numeric or character.

The resulting nodeset is scavenged for text, and coerced to best of numeric or character.

See Also

Other xpath: as.xml_document.numeric, as.xml_document

Other xpath: as.xml_document.numeric, as.xml_document

Other xpath: as.xml_document.numeric, as.xml_document

Examples

Run this code
# NOT RUN {
library(magrittr)
options(project = system.file('project/model',package='nonmemica'))
1001 %>% xpath('//etashrink/row/col')
# }

Run the code above in your browser using DataLab