Learn R Programming

mtconnectR (version 1.2.1)

get_xpaths_from_xml: Get XML xpath info

Description

Get info on all the xpaths for a single device from the xml file. Data is organized into a data.frame

Usage

get_xpaths_from_xml(file_path_xml, device_name, mtconnect_version = NULL)

Arguments

file_path_xml

Path to the XML file

device_name

Name of the device in the xml. List of all the devices and their names can be got using the get_device_info_from_xml function

mtconnect_version

Specify MTConnect Version manually. If not specified, it is inferred automatically from the data.

Examples

Run this code
# NOT RUN {
file_path_xml = "testdata/dataExtraction/test_devices.xml"
device_name = "test_device"
xpath_info = get_xpaths_from_xml(system.file(file_path_xml, package = "mtconnectR"), device_name)
print(xpath_info)
# }

Run the code above in your browser using DataLab