5.4.1 Processing Performed by the Sample Program
The sample program performs the following processing:
-
The program creates a new DOM tree that codes the product information.
-
The program transforms the created DOM tree into an XML document and outputs the XML document.
-
The program reads the output XML document.
-
From the read XML document, the program outputs the total cost of products to the window.