Uncategorized

Webb Programing Question 2

I need support with this PHP question so I can learn better.

Displaying Content of an XML File Using PHP Script or Code

In this week, you are going to write the PHP script or code to read an XML file and display its content on the screen. The file you will modify is the Products page, which you created in Week 1 Project. Given the following data in XML format, modify the Products page to read and display the information in the Products page:

<Product>
<Item>
<Name>T-Shirt</Name>
<Price>12.5</Price>
</Item>
<Item>
<Name>Pants</Name>
<Price>45</Price>
</Item>
<Item>
<Name>Hat</Name>
<Price>10.5</Price>
</Item>
</Product>

Your end page result needs to show the items, their cost (price) in a table format. Use both PHP script as well as HTML tags to create the dynamic table from the given XML file.

Submit your code as well as a test plan in a 4- to 5-page Microsoft Word document consisting of:

  • Screenshots of your project (showing design, data entered, and displayed)
  • A paragraph explaining how you tested your project

Note: Submit the zipped code, HTML, and PHP pages zipped under one file.

Submission Details

  • Name your document SU_ITS4112_W2_Project_LastName_FirstInitial.zip.
  • Support your responses with examples.
  • Cite any sources in APA format.
  • Submit your document to the Submissions Area by the due date assigned.