Learn R Programming

mtconnectR (version 1.2.1)

parse_devicexml_for_a_device: Parse XML file for given device name

Description

Get all the info on a particular device present in the XML Returns a list of parsed_xml,device_details and mtconnect_version

Usage

parse_devicexml_for_a_device(file_path_xml, device_name,
  mtconnect_version = NULL)

Arguments

file_path_xml

File path of the XML file

device_name

Name of the device to be searched in the XML

mtconnect_version

Version number of mtconnect standard

Examples

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

Run the code above in your browser using DataLab