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 15:30
Melissa needs to add a topic to an email that she will send to her teacher. choose the name of the field where she should type her topic.
Answers: 2
question
Computers and Technology, 22.06.2019 17:00
What allows you to create a wireless connection among your smart devices
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
What is the main benefit of minimizing the ribbon in word? more options will be accessible through customized keystrokes. more of the document will be viewable without needing to scroll. fewer controls will be accessible to the user by using the mouse. fewer editing options will be available without entering a password.
Answers: 1
question
Computers and Technology, 23.06.2019 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
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
Biology, 23.06.2019 04:31