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.  







Calculate Your Essay Price
(550 words)

Approximate price: $22

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

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

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

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Order your essay today and save 10% with the coupon code: best10