subject

In this exercise, you’ll add code to an inventory maintenance application that reads data from and writes data to an xml file. 1. open the inventorymaintenance with xml file directory, and display the code for the invitemdb class. 2. add code to the getitems method that creates an xmlreadersettings object that ignores white space and comments. then, create an xmlreader object for the inventoryitems. xml file that’s included in the project and that uses the reader settings. (the path constant contains the path to the xml file.) 3. add code that reads each item element, stores the contents of the child elements in an invitem object, and adds the object to the list object. be sure to check that the file contains at least one item element before the loop that processes these elements is executed. then, close the xmlreader object. 4. add code to the saveitems method that creates an xmlwritersettings object that indents each element four spaces. then, create an xmlwriter object for the inventoryitems. xml file that uses the writer settings. 5. add code that writes an xml declaration line and a start tag for the items element. then, add code that creates an item element for each invitem object in the list object. each property of the invitem object should be saved as a child element with the same name as the property. 6. add code that writes the end tag for the items element and then closes the xmlwriter object. 7. test the application to be sure it works correctly.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:30
What characteristic of long period comets suggest they come directly from the oort cloud?
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
Every telecommunication setup uses two devices: one device to transmit data and one device to receive data. which device transmits frequencies to mobile phones? towers transmit frequencies to mobile phones.
Answers: 1
question
Computers and Technology, 24.06.2019 20:00
Write c++programs for the following problem: let the user enter two numbers and display which is greater. !
Answers: 1
You know the right answer?
In this exercise, you’ll add code to an inventory maintenance application that reads data from and w...
Questions
question
Mathematics, 07.06.2020 02:01
question
Mathematics, 07.06.2020 02:01
question
Biology, 07.06.2020 02:01
question
Mathematics, 07.06.2020 02:01
question
Mathematics, 07.06.2020 02:01
question
Social Studies, 07.06.2020 02:01
question
Mathematics, 07.06.2020 02:01
Questions on the website: 13722362