231627 XML DOM
N/A
Betalt ved levering
Create an XHTML document with the JavaScript code to open and build the DOM tree for [url removed, login to view], but then also loads in and builds another DOM tree for another file like [url removed, login to view] as shown in the file: [url removed, login to view]
Then build in the functionality to modify the DOM tree for the [url removed, login to view] by adding the order for customer ID 65734 from the above listing to the [url removed, login to view] DOM.
Then list the contents of the [url removed, login to view] DOM to the screen to verify this.
Please submit the XHTML file containing all the above JavaScript functionality.
(HINT … use the cloneNode() and appendChild() functions from the Node Functions table.
Method and Description
appendChild(newChild) Appends the node newChild at the end
of the child nodes for this node
cloneNode(boolean) Returns an exact clone of this node.
hasChildNodes() Returns true if this node has any child
nodes
insertBefore(newNode,refNode) Inserts a new node, newNode, before
the existing node, refNode
removeChild(nodeName) Removes the specified node, nodeName
replaceChild(newNode,oldNode) Replaces the oldNode, with the
newNode
Projekt ID: #1977870