MTConnect C++ Agent Code for reading AGFM status from file, and converting to XML