Problem
A machine shop has two automatic milling machines. Machines' operation output data is in XML format. To improve the energy efficiency of the machines, operation data of power consumption and time stamps for each operation need to be extracted from the XML file. The extracted data will be calculated and then saved for analysis and comparison.
Find a solution in software for this problem.
I need to write a C++ program that extracts power consumption and time stamps data from a XML file and outputs it to another file. Output file should be properly formatted and labeled for analysis and comparison.
Here is the part in the XML file that the program supposes to extract