Extract data from xml using c++

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:

 

<VoltAmpereReactiveTimeSeries dataItemId=”electric_61″ timestamp=”2014-07-08T18:14:17.716Z” name=”kvar_a” sequence=”121794208″ sampleCount=”25″>

3937 3938 3940 3944 3943 3943 3939 3937 3937 3931 3925 3921 3919 3920 3918 3918 3920 3922 3919 3915 3913 3910 3907 3904 3899

</VoltAmpereReactiveTimeSeries>

<VoltAmpereReactiveTimeSeries dataItemId=”electric_62″ timestamp=”2014-07-08T18:14:17.716Z” name=”kvar_b” sequence=”121794204″ sampleCount=”25″>

5805 5805 5807 5807 5806 5803 5801 5797 5794 5790 5786 5784 5781 5780 5777 5776 5779 5779 5784 5789 5794 5800 5803 5807 5808

</VoltAmpereReactiveTimeSeries>

<VoltAmpereReactiveTimeSeries dataItemId=”electric_63″ timestamp=”2014-07-08T18:14:17.716Z” name=”kvar_c” sequence=”121794206″ sampleCount=”25″>

7128 7134 7136 7136 7143 7141 7141 7141 7140 7143 7142 7144 7143 7147 7154 7155 7158 7159 7161 7162 7160 7163 7163 7166 7170

</VoltAmpereReactiveTimeSeries>

<WattageTimeSeries dataItemId=”electric_64″ timestamp=”2014-07-08T18:14:17.716Z” name=”kw_a” sequence=”121794207″ sampleCount=”25″>

19437 19430 19416 19414 19423 19429 19426 19420 19421 19435 19440 19425 19414 19409 19413 19420 19412 19407 19414 19423 19439 19440 19434 19441 19455

</WattageTimeSeries>

<WattageTimeSeries dataItemId=”electric_65″ timestamp=”2014-07-08T18:14:17.716Z” name=”kw_b” sequence=”121794209″ sampleCount=”25″>

8795 8792 8794 8801 8804 8800 8802 8805 8810 8810 8801 8793 8795 8798 8796 8790 8784 8789 8797 8798 8796 8797 8805 8815 8818

</WattageTimeSeries>

<WattageTimeSeries dataItemId=”electric_66″ timestamp=”2014-07-08T18:14:17.716Z” name=”kw_c” sequence=”121794205″ sampleCount=”25″>

12572 12579 12585 12584 12581 12591 12602 12602 12598 12596 12593 12601 12596 12588 12596 12599 12609 12616 12612 12618 12629 12636 12637 12629 12623

</WattageTimeSeries>

 

Please include explanations on how you got the solution.  

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

We value our customers and so we ensure that what we do is 100% original..
With us you are guaranteed of quality work done by our qualified experts.Your information and everything that you do with us is kept completely confidential.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

The Product ordered is guaranteed to be original. Orders are checked by the most advanced anti-plagiarism software in the market to assure that the Product is 100% original. The Company has a zero tolerance policy for plagiarism.

Read more

Free-revision policy

The Free Revision policy is a courtesy service that the Company provides to help ensure Customer’s total satisfaction with the completed Order. To receive free revision the Company requires that the Customer provide the request within fourteen (14) days from the first completion date and within a period of thirty (30) days for dissertations.

Read more

Privacy policy

The Company is committed to protect the privacy of the Customer and it will never resell or share any of Customer’s personal information, including credit card data, with any third party. All the online transactions are processed through the secure and reliable online payment systems.

Read more

Fair-cooperation guarantee

By placing an order with us, you agree to the service we provide. We will endear to do all that it takes to deliver a comprehensive paper as per your requirements. We also count on your cooperation to ensure that we deliver on this mandate.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency