Create an xhtml document with the javascript code


Assignment:

Q1: In the seminar, Listing 5 showed an improve JavaScript function for printElement() to traverse and list on the screen all elements of the DOM of the XML document in Listing 1. Improve this JavaScript function by adding the functionality to also list on the screen the attributes and their values for each element. Submit the entire XHTML document containing the complete JavaScript code to process the file orders.xml (make sure you test it against the orders.xml file in the examples.zip file).

Q2: Create an XHTML document with the JavaScript code to open and build the DOM tree for orders.xml as in the seminar, but them also loads in and builds another DOM tree for another fileâ?¦ say orders2.xml as shown below



65743
pending

Nike Horse Shoes
120
4


Then build in the functionality to modify the DOM tree for the orders.xml by adding the order for customer ID 65734 from the above listing to the orders.xml DOM. Then list the contents of the orders.xml DOM to the screen to verify this.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create an xhtml document with the javascript code
Reference No:- TGS01938183

Now Priced at $25 (50% Discount)

Recommended (91%)

Rated (4.3/5)