parse_devicexml_for_a_device: Parse XML file for given device name

Description Usage Arguments Examples

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

1
2
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

1
2
3
4
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)

Example output



mtconnectR documentation built on May 1, 2019, 10:38 p.m.