parseTEI: Extract part of a TEI document

Description Usage Arguments Value Examples

View source: R/parseTEI.R

Description

This function will return the values of given nodes in a given filepath.

Usage

1
parseTEI(filepath, node = "")

Arguments

filepath

A string that holds the location of the file you want to extract values from.

node

One or more node types that you want to extract values from.

Value

wantedNodes The values for all nodes matching node in the file found at filepath.

Examples

1
nodes = parseTEI("path/to/xml/file", node="hi") # Get values for all highlight nodes

michaelgavin/tei2r documentation built on May 22, 2019, 9:50 p.m.