Question

Create an XML document for Teacher of a University.

16 Sep 2022
Answer :
Word Count : 113

XML document for a teacher of a university:

xml
Copy code
<?xml version="1.0"?>
<Teacher>
  <TeacherID>1</TeacherID>
  <Name>John Doe</Name>
  <Department>Computer Science</Department>
  <Email>johndoe@university.edu</Email>
  <Courses>
    <Course>Data Structures and Algorithms</Course>
_______ __________ _____ _______ ____ ____ __________ _______ _________ ____ _________.
___ ________ ______ __________ _____.
_____ _______ ________ ______ ______ ________ _______ __________ ______.
____ _______ _________ _______ _________ _______ ______.
_______ _________ __________ _________ ______ _________ __________ _____ _________ _______ _________ ____.
_______ ______ __________ ________ ____ __________ _________ ______.
__________ ____ _____ __________ ___ ______ ___ __________ _______ __________ _______ _________.
________ ____ _________ _____ __________ __________ ___.
___.

IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
'; fetch( "query.php?type=1&method=0&lr=0&app=401&mycartproduct=1", { method: "GET", cache: "no-store" } ) .then(function(response) { if (!response.ok) { throw new Error( "HTTP " + response.status ); } return response.text(); }) .then(function(html) { loader.innerHTML = html; /* Your existing function, if available. */ if (typeof updateTotals === "function") { updateTotals(); } else { calculateCartTotal(); } }) .catch(function(error) { console.error( "Cart loading error:", error ); loader.innerHTML = '
Unable to load cart.
'; });}/* ========================================================= CALCULATE TOTAL========================================================= */function calculateCartTotal() { let subtotal = 0; /* Looks for .item-price inside AJAX products. Examples accepted: ₹200 ₹200.00 Rs 200 Rs. 200 200 200.00 */ const prices = document.querySelectorAll( '#loadmycart .item-price' ); prices.forEach(function(element) { let text = element.textContent || ''; text = text .replace(/₹/g, '') .replace(/Rs\.?/gi, '') .replace(/,/g, '') .trim(); let value = parseFloat(text); if (!isNaN(value)) { subtotal += value; } }); updateCartDisplay(subtotal);}/* ========================================================= UPDATE TOTAL DISPLAY========================================================= */function updateCartDisplay(total) { const subtotalElement = document.getElementById('subtotal'); const totalElement = document.getElementById('total'); const checkoutButton = document.getElementById('checkoutButton'); const noItems = document.getElementById('noitems'); const amount = Number(total) || 0; if (subtotalElement) { subtotalElement.textContent = '₹' + amount.toFixed(2); } if (totalElement) { totalElement.textContent = '₹' + amount.toFixed(2); } /* EMPTY CART */ if (amount
Top