CS311 Assignment 3 Solution and Discussion


  • Cyberian's Gold

    Assignment No. 03
    Semester: Fall 2019
    Introduction to Web Services Development – CS311 Total Marks: 20
    Due Date: 20-01-2020
    Lectures Covered: 16-28

    Objectives:
    Understand and get hands on experience on
    • XML Parser
    • XMLHttpRequest
    • XML DOM
    • XML Dom Nodes
    • getElementsByTagName Method
    • ChildNodes Property
    • Displaying XML data in HTML file
    Instructions:
    Please read the following instructions carefully before submitting assignment:
    It should be clear that your assignment will not get any credit if:

     The assignment is submitted after due date.
     The assignment is submitted via email.
     The assignment is copied from Internet or from any other student.
     The submitted assignment does not open or file is corrupt.
     It is in some format other than .html (HTML File).

    Note: All types of plagiarism are strictly prohibited.

    For any query about the assignment, contact at [email protected]

    Carefully analyze the file “books_data.xml” (which is attached with the assignment file). Information of different books is given in this xml file which includes book name, book price, book author etc.
    Create an HTML file to display the “names” of books by parsing the response of “books_data.xml” in that HTML file with JavaScript using XMLHttpRequest Object.
    Sample Output:

    You can see sample output in “Sample Output.mp4” video attached with this assignment file.

    Assignment Uploading Instructions:
     To make and test your code, you need to download Xampp Server from following link. https://www.apachefriends.org/index.html
     After the installation of Xampp , you need to save your html file and “books_data.xml” file in the path given below
    C:\xampp\htdocs
     To run your file type the address http://localhost/your_assignment_file.html
     Upload your assignment solution in .html file format on VULMS

    Please note that due date of assignment will not extend, so do not wait for last date and submit your solution as quickly as possible.
    Due Date: 20/01/2020
    BEST OF LUCK

    <?xml version="1.0" encoding="UTF-8"?>
    <BOOKS_LIST>
      <book>
        <name>History of Pakistan</name>
        <price>150</price>
        <author>Abc</author>
      </book>
    
      <book>
        <name>French Revolution</name>
        <price>300</price>
        <author>XYZ</author>
      </book>
    
      <book>
        <name>Biographies</name>
        <price>250</price>
        <author>WSD</author>
      </book>
    
      <book>
        <name>Gulf Countries</name>
        <price>150</price>
        <author>ASD</author>
      </book>
    
      <book>
        <name>Haunted Stories</name>
        <price>150</price>
        <author>Abc</author>
      </book>
      
    </BOOKS_LIST>
    
    


  • Cyberian's


  • Cyberian's Gold

    CS311_XAMPP_2.gif


  • Cyberian's Gold

    Solution Idea!
    f94a1a8b-a6ad-4c4b-98b9-d7a2b6d69043-image.png



Quiz 100% Result Quiz 100% Result
| |