xpath: Extract Value of an xpath Expression from and XML File

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Given an xpath expression, find corresponding values in an XML tree stored as a file.

Usage

1

Arguments

x

a valid xpath expression

file

(path and) name of a file

Details

This relies on the XML package. Somewhat experimental.

Value

same as xpathSApply

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

See Also

Examples

1
2
3
4
	filename <- 'example/project/nonmem/1005/1005.xml'
	xpath('//nm:theta/nm:val', system.file(filename,package='metrumrg'))
	xpath('//nm:monitor/nm:obj', system.file(filename,package='metrumrg'))
	xpath('//nm:covariance/nm:row', system.file(filename,package='metrumrg'))

metrumrg documentation built on May 2, 2019, 5:55 p.m.