QuestionQuestion

Write the PHP script or code to read an XML file and display its content on the screen. 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.

Support your responses with examples.

Cite any sources in APA format.

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

<html>
    <head>
       <meta charset="UTF-8">
       <title>Shopping Cart</title>
       <link href="mycss.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
       <div class="banner" >
            <a href="product.html"><img src="img/gobble.jpg" alt="gobble banner" width="800" /></a>
       </div>
       <nav>
            <ul>
                <li><a href="index.html">Home</a></li>
                <li><a href="contactus.html">Contact Us</a></li>
                <li><a href="aboutus.html">About Us</a></li>               
                <li><a href="product.php">Products</a></li>
                <li><a href="cart.php">Shopping Carts</a></li>
            </ul>
       </nav>...
$15.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Web Development (HTML, XML, PHP, JavaScript, Adobe, Flash, etc.) Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats