Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

XML, XSLT, DOM, and AJAX: A Comprehensive Guide - Prof. Murch, Lecture notes of Web Programming and Technologies

This document offers a detailed explanation of xml, including its features, dtd, and schema. it also covers xslt for xml transformations, the dom for xml manipulation, and ajax for asynchronous web applications. The guide provides examples and comparisons to enhance understanding.

Typology: Lecture notes

2024/2025

Available from 04/19/2025

r22syedamubarrahmpcs029
r22syedamubarrahmpcs029 ๐Ÿ‡ฎ๐Ÿ‡ณ

5 documents

1 / 17

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
DOM (Document Object Model)
The DOM represents an XML/HTML document as a tree of nodes. Each node corresponds to
elements, attributes, or text, making it easy to navigate and manipulate programmatically.
DOM Tree Structure
Given XML:
<book>
<title>XML Developer's Guide</title>
<author>Author Name</author>
<publisher>Publisher Name</publisher>
</book>
DOM Tree:
โ—Document (Root Node)
โ—‹ Element: <book>
โ–  Element: <title> Text: โ†’XML Developer's Guide
โ–  Element: <author> Text: โ†’Author Name
โ–  Element: <publisher> Text: โ†’Publisher Name
Manipulating XML DOM with JavaScript
1. Load XML:
let xmlString = `...`;
let parser = new DOMParser();
let xmlDoc = parser.parseFromString(xmlString, "text/xml");
2. Modify Elements:
xmlDoc.getElementsByTagName("title")[0].textContent = "Advanced XML Guide";
xmlDoc.getElementsByTagName("author")[0].textContent = "Updated Author Name";
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download XML, XSLT, DOM, and AJAX: A Comprehensive Guide - Prof. Murch and more Lecture notes Web Programming and Technologies in PDF only on Docsity!

DOM (Document Object Model)

The DOM represents an XML/HTML document as a tree of nodes. Each node corresponds to elements, attributes, or text, making it easy to navigate and manipulate programmatically.

DOM Tree Structure

Given XML: XML Developer's Guide Author Name Publisher Name DOM Tree: โ— Document (Root Node) โ—‹ Element: โ–  Element: โ†’ Text: <em>XML Developer's Guide</em> โ–  Element: <author> โ†’ Text: <em>Author Name</em> โ–  Element: <publisher> โ†’ Text: <em>Publisher Name</em></p> <h2>Manipulating XML DOM with JavaScript</h2> <p><strong>1. Load XML:</strong> let xmlString = <code>...</code>; let parser = new DOMParser(); let xmlDoc = parser.parseFromString(xmlString, "text/xml"); <strong>2. Modify Elements:</strong> xmlDoc.getElementsByTagName("title")[0].textContent = "Advanced XML Guide"; xmlDoc.getElementsByTagName("author")[0].textContent = "Updated Author Name";</p> <p><strong>3. Add New Element:</strong> let year = xmlDoc.createElement("year"); year.textContent = "2025"; xmlDoc.getElementsByTagName("book")[0].appendChild(year); <strong>4. Serialize Updated XML:</strong> let updatedXML = new XMLSerializer().serializeToString(xmlDoc); console.log(updatedXML);</p> <h2>Final Output:</h2> <p><book> <title>Advanced XML Guide Updated Author Name Publisher Name 2025 OR

Document Object Model (DOM) โ€“ 10 Marks Answer (Points)

  1. Definition: The Document Object Model (DOM) is a programming interface for HTML and XML documents. It defines the logical structure of documents and the way a document can be accessed and manipulated.
  2. Tree Structure: The DOM represents the document as a hierarchical tree of nodes. Each node is an object representing a part of the document such as an element, text, attribute, or comment.
  3. Types of Nodes: โ—‹ Document Node: The root of the DOM tree. โ—‹ Element Node: Represents tags like , , etc.</li> </ol> <p><strong>โ—</strong> Client-side scripting with JavaScript for interactive interfaces</p> <h2>Q.What is the importance of extensible stylesheet language and xsl</h2> <h2>transformation?</h2> <p><strong>Extensible Stylesheet Language (XSL) and XSLT โ€“ 10 Marks Answer</strong></p> <h2>Extensible Stylesheet Language (XSL) is used to define the presentation of XML</h2> <h2>data. It allows you to transform and format XML documents for display in web</h2> <h2>pages or other formats like PDF or plain text. XSLT (XSL Transformations) is a</h2> <h2>powerful part of XSL that helps transform XML data into a new structure or</h2> <h2>format.</h2> <h2>Importance of XSLT:</h2> <h2>โ— XSLT is much more powerful than CSS when working with XML.</h2> <h2>โ— It allows you to add, remove, rearrange, and filter elements and attributes.</h2> <h2>โ— You can use conditions, loops, and sorting within your transformation logic.</h2> <h2>โ— XSLT works with XPath, a language used to navigate through elements in</h2> <h2>XML.</h2> <h2>โ— It is commonly used to convert XML data into HTML for display in</h2> <h2>browsers.</h2> <p>Simple Example of XSLT</p> <h2>XML File (menu.xml):</h2> <h2><menu></h2> <h2><item></h2> <h2><name>Idli</name></h2> <h2><price>30</price></h2> <h2></item></h2> <h2><item></h2> <h2><name>Dosa</name></h2> <h2><price>40</price></h2> <h2></item></h2> <h2></menu></h2> <h2>XSLT File (menu.xsl):</h2> <h2><?xml version="1.0"?></h2> <h2><xsl:stylesheet version="1.0"</h2> <h2>xmlns:xsl="http://www.w3.org/1999/XSL/Transform"></h2> <h2><xsl:template match="/"></h2> <h2><html></h2> <h2><body></h2> <h2><h2>Menu</h2></h2> <h2><ul></h2> <h2><xsl:for-each select="menu/item"></h2> <h2><li></h2> <h2><xsl:value-of select="name"/> - Rs.<xsl:value-of select="price"/></h2> <h2></li></h2> <h2></xsl:for-each></h2> <h2></ul></h2> <h2></body></h2> <h2></html></h2> <h2></xsl:template></h2> <h2></xsl:stylesheet></h2> <h2>Output (in browser):</h2> <h2>Menu</h2> <ul> <li>Idli - Rs.</li> <li>Dosa - Rs.</li> </ul> <p><rollno>101</rollno> <department>Computer Science</department> </student> <strong>Structure Explanation:</strong> โ— <?xml ...?>: Declaration of XML version and encoding. โ— <student>: Root element. โ— <name>, <rollno>, <department>: Child elements. โ— Text values: Data inside elements. This structure forms a <strong>DOM tree</strong> , which can be easily accessed and manipulated.</p> <p><strong>3. Explain XML DTD and XML Schema with examples. DTD (Document Type Definition)</strong> defines the structure and rules of an XML document. It checks if the XML follows the correct format (validity). <strong>Example of DTD:</strong></p> <!DOCTYPE student [ <!ELEMENT student (name, rollno)> <!ELEMENT name (#PCDATA)> <!ELEMENT rollno (#PCDATA)> ]> **XML Schema (XSD)** is a more powerful alternative to DTD. It supports **data types** , **namespaces** , and **restrictions**. **Example of XML Schema:** <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="student"> <xs:complexType> <xs:sequence> <p><xs:element name="name" type="xs:string"/> <xs:element name="rollno" type="xs:int"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> <strong>Comparison:</strong> โ— DTD is simpler, not XML-based. โ— XSD is XML-based, supports data types and validation.</p> <p><strong>4. Explain how formatting is done and the usage of XSL. XSL (Extensible Stylesheet Language)</strong> is used to <strong>format and transform XML documents</strong>. The most important part is <strong>XSLT (XSL Transformations)</strong>. <strong>XSLT Features:</strong> โ— Transform XML into HTML or other formats. โ— Add/remove elements. โ— Sort and filter data. โ— Use XPath to select parts of the document. <strong>Example:</strong></p> <!-- XML --> <book><title>XML Guide

    โ— Combines multiple technologies: JavaScript, XML/JSON, DOM, and XMLHttpRequest. Features: โ— Asynchronous Communication : No need to reload the page. โ— Improved User Experience : Smoother and faster. โ— Uses XMLHttpRequest object to communicate with the server. โ— Lightweight and Dynamic : Only loads necessary content. โ— Can work with XML or JSON for data.

    7. Compare Traditional Web Applications vs AJAX Applications Feature Traditional Web Apps AJAX Web Apps Page Reload Full page reload required No page reload User Experience Slower, less responsive Fast and interactive Communication Synchronous Asynchronous Data Transfer Large HTML content Only required data (JSON/XML) Performance Slower due to full page load Faster, reduces server load Technology Used HTML, CSS, Server scripting AJAX = JS + XML/JSON + XMLHttpRequest 8. Give an AJAX example using XMLHttpRequest object. HTML + JavaScript Example:

    **Explanation:** โ— XMLHttpRequest sends a GET request to data.txt. โ— When data is received, it updates the output div. โ— No page reload occurs.

    <h:td>Apples</h:td> <h:td>Bananas</h:td> </h:tr> </h:table> <f:table> <f:name>African Coffee Table</f:name> <f:width>80</f:width> <f:height>120</f:height> </f:table> In this example: โ— Elements prefixed with h belong to the HTML namespace. โ— Elements prefixed with f belong to the furniture namespace. This approach ensures that elements from different vocabularies can coexist without naming conflicts. citeturn0search

    2. Discuss about Document Type Definition (DTD) A Document Type Definition (DTD) defines the structure and legal elements and attributes of an XML document. It acts as a blueprint, ensuring that XML documents adhere to a predefined format. Purpose: โ— Validates the structure of XML documents. โ— Defines allowed elements, attributes, and their relationships. Types of DTD: 1. Internal DTD: Defined within the XML document. 2. External DTD: Defined in an external file and referenced within the XML document. Example of Internal DTD:

    ]> Tove Jani Reminder Don't forget me this weekend! In this example: **โ—** The declaration contains the DTD. **โ—** defines the elements and their content models. Limitations: โ— DTDs do not support data types; all data is treated as text. โ— They lack namespace support. citeturn0search

    3. Explain XSL Transformations (XSLT) XSLT (Extensible Stylesheet Language Transformations) is a language used to transform XML documents into other formats like HTML, plain text, or other XML structures. Purpose: โ— Separates data (XML) from its presentation. โ— Enables the transformation of XML data into a human-readable format or another structured format.

    When applied, this XSLT transforms the XML into an HTML document displaying the note's details. citeturn0search

    4. What is Document Object Model (DOM)? The Document Object Model (DOM) is a programming interface that represents XML or HTML documents as a tree structure, allowing programs to read, manipulate, and modify the document's content and structure dynamically. Structure: โ— Nodes: Every part of the document (elements, attributes, text) is a node in the DOM tree. โ— Hierarchy: Nodes are arranged in a hierarchical tree structure, with a single root node. Types of Nodes: 1. Element Nodes: Represent tags in the document. 2. Attribute Nodes: Represent attributes of elements. 3. Text Nodes: Represent the text content within elements. Example: Consider the following XML: XML Guide John Doe The DOM representation would be: โ— Document โ—‹ Element: โ–  Element: โ–  Text: "XML Guide"</p> <p><strong>โ– </strong> Element: <author> โ–  Text: "John Doe" Usage: โ— Navigation: Traverse the document structure. โ— Modification: Add, remove, or change elements and attributes. โ— Dynamic Content: Update content dynamically in web applications. citeturn0search</p> <p><strong>5. What is an AJAX Application?</strong> AJAX (Asynchronous JavaScript and XML) is a web development technique that enables web applications to send and receive data asynchronously from a server without requiring a full page reload. Key Features: โ— Asynchronous Data Fetching: Allows data to be fetched in the background without interfering with the display and behavior of the existing page. โ— Partial Page Updates: Only parts of a webpage are updated, leading to a more dynamic and responsive user experience. โ— Reduced Server Load: Minimizes the amount of data transferred between the client and server. Example Use Cases: โ— Auto-suggest: Search boxes</p> </div></div></div></div><footer id="footer" class="sc-gsnTZi hxUvtc"><div width="100%" display="grid" class="sc-gsnTZi sc-breuTD hQDdiS cEXOWE"><div class="sc-gsnTZi sc-ksZaOG hINUYJ ijDdyb"><p color="muted" class="sc-dkzDqf jtFJUi">Documents</p><div width="100%" display="grid" class="sc-gsnTZi sc-breuTD jxbiSy ddZtgY"><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/summaries/" color="negative" class="sc-dkzDqf liUIpz">Summaries</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/exercises/" color="negative" class="sc-dkzDqf liUIpz">Exercises</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/exam-questions/" color="negative" class="sc-dkzDqf liUIpz">Exam</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/lecture-notes/" color="negative" class="sc-dkzDqf liUIpz">Lecture notes</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/degree-thesis/" color="negative" class="sc-dkzDqf liUIpz">Thesis</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/study-notes/" color="negative" class="sc-dkzDqf liUIpz">Study notes</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/schemes/" color="negative" class="sc-dkzDqf liUIpz">Schemes</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/store/" color="negative" class="sc-dkzDqf liUIpz">Document Store</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/documents/" color="negative" text-decoration="underline" class="sc-dkzDqf jvXOLr">View all</a></div></div></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ ijDdyb"><p color="muted" class="sc-dkzDqf jtFJUi">questions</p><div width="100%" display="grid" class="sc-gsnTZi sc-breuTD jxbiSy ddZtgY"><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/answers/" color="negative" class="sc-dkzDqf liUIpz">Latest questions</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/answers/biology-and-chemistry/" color="negative" class="sc-dkzDqf liUIpz">Biology and Chemistry</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/answers/psicology-and-sociology/" color="negative" class="sc-dkzDqf liUIpz">Psychology and Sociology</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/answers/management/" color="negative" class="sc-dkzDqf liUIpz">Management</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/answers/physics/" color="negative" class="sc-dkzDqf liUIpz">Physics</a></div></div></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ ijDdyb"><p color="muted" class="sc-dkzDqf jtFJUi">University</p><div width="100%" display="grid" class="sc-gsnTZi sc-breuTD jxbiSy ddZtgY"><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/university/us/" color="negative" class="sc-dkzDqf liUIpz">United States of America (USA)</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/university/ph/" color="negative" class="sc-dkzDqf liUIpz">Philippines</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/university/in/" color="negative" class="sc-dkzDqf liUIpz">India</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/university/vn/" color="negative" class="sc-dkzDqf liUIpz">Vietnam</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/university/gb/" color="negative" class="sc-dkzDqf liUIpz">United Kingdom</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/university/ca/" color="negative" class="sc-dkzDqf liUIpz">Canada</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/university/tr/" color="negative" class="sc-dkzDqf liUIpz">Turkey</a></div><div class="sc-gsnTZi sc-ksZaOG hINUYJ dPsdkt"><a href="/en/university/id/" color="negative" class="sc-dkzDqf liUIpz">Indonesia</a></div></div></div></div><div class="sc-gsnTZi dfEwCf"><img src="https://assets.docsity.com/ds/logo/docsity-logo-rebrand-negativo.svg" alt="Docsity logo" width="269px" height="120px" class="sc-crXcEl kmMsfS"/></div><div direction="row" class="sc-bczRLJ iznJYF"><a color="negative" target="_self" href="/en/ai/explore-ai/" class="sc-dkzDqf liUIpz">Docsity AI</a><a color="negative" target="_self" href="/en/store/sell/" class="sc-dkzDqf liUIpz">Sell documents</a><a color="negative" target="_blank" href="https://corporate.docsity.com/about-us/" class="sc-dkzDqf liUIpz">About us</a><a color="negative" target="_blank" href="https://support.docsity.com/hc/en-us" class="sc-dkzDqf liUIpz">Contact us</a><a color="negative" target="_blank" href="https://corporate.docsity.com/docsity-partners/" class="sc-dkzDqf liUIpz">Partners</a><a color="negative" target="_self" href="/en/pag/how-does-docsity-works/" class="sc-dkzDqf liUIpz">How does Docsity work</a><a color="negative" target="_blank" href="https://weuni.docsity.com/en/" class="sc-dkzDqf liUIpz">WeUni</a></div><div class="sc-gsnTZi bNTXbI"><div direction="row" class="sc-bczRLJ iznJYF"><a color="negative" target="_self" href="/es/documentos/" class="sc-dkzDqf liUIpz">Espaรฑol</a><a color="negative" target="_self" href="/it/documenti/" class="sc-dkzDqf liUIpz">Italiano</a><a color="negative" target="_self" href="/en/documents/" class="sc-dkzDqf liUIpz">English</a><a color="negative" target="_self" href="/sr/dokumenta/" class="sc-dkzDqf liUIpz">Srpski</a><a color="negative" target="_self" href="/pl/dokumenty/" class="sc-dkzDqf liUIpz">Polski</a><a color="negative" target="_self" href="/ru/dokumenty/" class="sc-dkzDqf liUIpz">ะ ัƒััะบะธะน</a><a color="negative" target="_self" href="/pt/documentos/" class="sc-dkzDqf liUIpz">Portuguรชs</a><a color="negative" target="_self" href="/fr/documents/" class="sc-dkzDqf liUIpz">Franรงais</a><a color="negative" target="_self" href="/de/dokumente/" class="sc-dkzDqf liUIpz">Deutsch</a></div></div><div class="sc-gsnTZi fHZVwh"><div direction="row" class="sc-bczRLJ iznJYF"><a color="negative" target="_self" href="/en/usa/" class="sc-dkzDqf liUIpz">United States of America (USA)</a><a color="negative" target="_self" href="/en/phl/" class="sc-dkzDqf liUIpz">Philippines</a><a color="negative" target="_self" href="/en/ind/" class="sc-dkzDqf liUIpz">India</a><a color="negative" target="_self" href="/en/vnm/" class="sc-dkzDqf liUIpz">Vietnam</a><a color="negative" target="_self" href="/en/gbr/" class="sc-dkzDqf liUIpz">United Kingdom</a><a color="negative" target="_self" href="/en/can/" class="sc-dkzDqf liUIpz">Canada</a><a color="negative" target="_self" href="/en/tur/" class="sc-dkzDqf liUIpz">Turkey</a><a color="negative" target="_self" href="/en/idn/" class="sc-dkzDqf liUIpz">Indonesia</a></div></div><div display="flex" class="sc-gsnTZi gCHycu"><div direction="row" class="sc-bczRLJ iznJYF"><a color="negative" target="_self" href="/en/pag/terms-and-conditions/" class="sc-dkzDqf liUIpz">Terms of Use</a><a color="negative" target="_self" href="/en/pag/cookie-policy/" class="sc-dkzDqf liUIpz">Cookie Policy</a><button color="negative" target="_self" class="sc-dkzDqf liUIpz">Cookie setup</button><a color="negative" target="_self" href="/en/pag/privacy/" class="sc-dkzDqf liUIpz">Privacy Policy</a></div><div direction="row" class="sc-bczRLJ iznJYF"><a href="https://www.facebook.com/DocsityGlobal" target="_blank" aria-label="facebook" color="inherit" class="sc-dkzDqf kUmfEV"><span class="sc-cxabCf kOzcVX"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" viewBox="0 0 256 256"><path d="M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm12,191.13V156h20a12,12,0,0,0,0-24H140V112a12,12,0,0,1,12-12h16a12,12,0,0,0,0-24H152a36,36,0,0,0-36,36v20H96a12,12,0,0,0,0,24h20v55.13a84,84,0,1,1,24,0Z"></path></svg></span></a><a href="https://www.instagram.com/docsity_en/" target="_blank" aria-label="instagram" color="inherit" class="sc-dkzDqf kUmfEV"><span class="sc-cxabCf kOzcVX"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" viewBox="0 0 256 256"><path d="M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,152ZM176,20H80A60.07,60.07,0,0,0,20,80v96a60.07,60.07,0,0,0,60,60h96a60.07,60.07,0,0,0,60-60V80A60.07,60.07,0,0,0,176,20Zm36,156a36,36,0,0,1-36,36H80a36,36,0,0,1-36-36V80A36,36,0,0,1,80,44h96a36,36,0,0,1,36,36ZM196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Z"></path></svg></span></a><a href="https://www.linkedin.com/company/docsity-com/" target="_blank" aria-label="linkedin" color="inherit" class="sc-dkzDqf kUmfEV"><span class="sc-cxabCf kOzcVX"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" viewBox="0 0 256 256"><path d="M216,20H40A20,20,0,0,0,20,40V216a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V40A20,20,0,0,0,216,20Zm-4,192H44V44H212ZM112,176V120a12,12,0,0,1,21.43-7.41A40,40,0,0,1,192,148v28a12,12,0,0,1-24,0V148a16,16,0,0,0-32,0v28a12,12,0,0,1-24,0ZM96,120v56a12,12,0,0,1-24,0V120a12,12,0,0,1,24,0ZM68,80A16,16,0,1,1,84,96,16,16,0,0,1,68,80Z"></path></svg></span></a></div><div direction="row" class="sc-bczRLJ iznJYF"><a color="negative" target="_self" href="/en/sitemap/better/" class="sc-dkzDqf liUIpz">Sitemap Resources</a><a color="negative" target="_self" href="/en/sitemap/latest/" class="sc-dkzDqf liUIpz">Sitemap Latest Documents</a><a color="negative" target="_self" href="/en/sitemap/country/" class="sc-dkzDqf liUIpz">Sitemap Languages and Countries</a></div><p color="muted" class="sc-dkzDqf exhynh">Copyright ยฉ 2025 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved</p></div></footer><div id="modal-area"></div><div width="unset,360px" overflow="hidden" class="sc-gsnTZi GrWcS"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"currentUrl":"/en/docs/web-programming-and-technologies-2/12938070/","currentRoute":"document.view","currentUser":null,"translations":{"alerts.action_spacer":"or","alerts.back_lang.action":"Back to %s language","alerts.complete_profile.link":"Complete profile","alerts.complete_profile.text":"Help us recommend the best content for you and receive instantly **%s download points**","alerts.confirm_email.action_modifica":"Change email address","alerts.confirm_email.action_reinvia":"Resend email.","alerts.confirm_email.text":"Confirm your email address by clicking on the link we sent you at %s.","alerts.diff_lang.action":"Click here","alerts.diff_lang.text":"You are browsing in a language other than your own","alerts.invalid_email.action_modifica":"Change email","alerts.invalid_email.action_resend":"Resend email","alerts.invalid_email.text":"We are unable to send the confirmation email to your address: **%s**","alerts.low_points.action":"Get points immediately","alerts.low_points.main":"You are running out of Download Points.","common.date.formatAcademicYear":"Pre %s","completeProfile.form_label":"Birth year","completeProfile.form_label_cta":"Confirm data","completeProfile.label_cta":"Start now","completeProfile.text_default_1":"You'll earn % points","completeProfile.text_default_2":"to download documents and gain access to free Video Courses and Quizzes","completeProfile.text_default_3":"to download documents","completeProfile.text_guest":"To proceed, enter the missing data","completeProfile.title_default":"Update your profile to continue","completeProfile.title_guest":"Oops, looks like you missed something!","docProfessorModal.disclaimer":"The page is generated automatically and is not managed by a person (the Professor or anyone else). The documents listed are not official or representative of the teaching methods and contents of the Professor in question. They are automatically aggregated according to criteria entered by users. The personal data relating to the Professor contained in this page have been collected by the Data Controller (Ladybird s.r.l.) from open sources accessible to the public and / or have been generated directly by the users. The goal is to enrich the contents of the platform for the legitimate interest of Ladybird s.r.l. to improve its usability for the benefit of its users. They will be stored until any opposition to the processing by the interested party, who is entitled to oppose the processing for reasons related to their particular situation, except for the provisions of art. 21 ยง 1, Paragraph 2, GDPR. For more information on the categories of recipients of the personal data and the additional rights of the data subject, please refer to sections B and H respectively of the Docsity privacy policy available at this [link](%s)","docs.abstractArea.documents":"Documents","docs.abstractArea.seoString":"Download %1$s and more %2$s %3$s in PDF only on Docsity!","docs.abstractArea.thisSubject":"This subject","docs.abstractArea.title":"Partial preview of the text","docs.actionSection.disabledByLanguageUser":"Only %s Docsity users can download this document","docs.actionSection.disabledByUserNotSeller":"We have received reports about this document. The download is temporarily disabled.","docs.actions.addFavourite":"Add to favourites","docs.actions.approveDocument":"Approve Document","docs.actions.approveDocument.force":"Force document approval","docs.actions.cannotEditPrime":"This document can no longer be modified because it has been promoted as a Top Document","docs.actions.deleteDocument":"Delete","docs.actions.download":"Download","docs.actions.downloadDocuemnt":"Download the document","docs.actions.edit":"Edit","docs.actions.follow":"Follow","docs.actions.reconvertDocument.errorMessage":"Error during the request","docs.actions.reconvertDocument.label":"Convert the document","docs.actions.reconvertDocument.successMessage":"Conversion successfully completed","docs.actions.remove":"Remove","docs.actions.removeFavourite":"Remove from favourites","docs.actions.reportDocument":"Report document","docs.actions.requestError":"An error has occurred","docs.actions.requestSuccess":"Request submitted, wait a few seconds and reload the page","docs.actions.review":"Leave a review","docs.actions.save":"Save","docs.actions.shareDocTooltip":"Share document","docs.actions.shareLabel":"Share","docs.actions.unfollow":"Unfollow","docs.actions.useAI":"Try Docsity AI","docs.actions.watchReview":"Your review","docs.aiOffCanvas.aiAlertFreemium":"**Free trial on %s documents or use without limits with Premium**","docs.aiOffCanvas.aiCtaDownload":"Download document","docs.aiOffCanvas.aiDownload":"You can use AI after downloading the document","docs.aiOffCanvas.aiDownloadDocument":"**AI is available with a Premium plan.** You can use AI after downloading the document, no additional cost.","docs.aiOffCanvas.aiFeaturePoints":"%s points","docs.aiOffCanvas.chat.infoPoint1":"Explore the content of a document with chat responses","docs.aiOffCanvas.chat.infoPoint2":"Clear any doubts to study in less time","docs.aiOffCanvas.chat.title":"Ask the document","docs.aiOffCanvas.map.infoPoint1":"Get the conceptual map of a document, generated by the AI","docs.aiOffCanvas.map.infoPoint2":"Edit the map","docs.aiOffCanvas.map.infoPoint3":"Download a PNG","docs.aiOffCanvas.map.title":"Concept map","docs.aiOffCanvas.points":"points","docs.aiOffCanvas.quiz.infoPoint1":"Generate a number of questions on the topics covered by the document","docs.aiOffCanvas.quiz.infoPoint2":"Download the PDF quiz so you can study whenever you want","docs.aiOffCanvas.quiz.infoPoint3":"Get the correct answer for each question","docs.aiOffCanvas.quiz.title":"Quiz","docs.aiOffCanvas.subtitle":"What you can get","docs.aiOffCanvas.summary.infoPoint1":"Summary of approximately 70%, in just a few minutes and in PDF format","docs.aiOffCanvas.summary.infoPoint1updated":"Summarise the document in a few minutes","docs.aiOffCanvas.summary.infoPoint2":"Download the summary document in PDF format","docs.aiOffCanvas.summary.infoPoint2updated":"Download the summary in PDF format","docs.aiOffCanvas.summary.title":"Summary","docs.aiOffCanvas.title":"Use Docsity AI on the document","docs.aiOffCanvas.titleUpdated":"Download the document to use AI","docs.breadcrumb.free":"Documents","docs.breadcrumb.store":"Store","docs.ctaArea.toggleSidebarTooltip":"Find here **related documents** and other useful resources","docs.ctaMessages.AI":"AI","docs.ctaMessages.alreadyDownloadedTitle":"You already downloaded this document","docs.ctaMessages.alreadyReviewedTitle":"You've already downloaded and reviewed this document","docs.ctaMessages.descriptionAI":"Make a summary, create a concept map or a quiz from this document","docs.ctaMessages.disabledByLanguageUser":"Only %s Docsity users can download this document","docs.ctaMessages.disabledByUserNotSeller":"This document is temporarily unavailable for download","docs.ctaMessages.discountBadge":"On special offer","docs.ctaMessages.myDocumentOffer":"Your document is discounted temporarily","docs.ctaMessages.uploadedTtile":"You uploaded this document on %s","docs.docDeletionModal.empty":"The field is mandatory","docs.docDeletionModal.notice":"Document_notice","docs.docDeletionModal.report":"Reports","docs.docDeletionModal.submit":"Delete Document","docs.docDeletionModal.textArea.label":"Notes","docs.docDeletionModal.textArea.optional":"(optional)","docs.docDeletionModal.textArea.placeholder":"Write here...","docs.docDeletionModal.title":"Select the reason for deletion","docs.docMyDiscountModal.close":"OK, close","docs.docMyDiscountModal.content":"Since this document was not receiving downloads, we decided to discount it to. When the number of downloads goes back up, we will increase the price again.","docs.docMyDiscountModal.title":"This document has been discounted","docs.docProfessorModal.disclaimer":"The page is generated automatically and is not managed by a person (the Professor or anyone else). The documents listed are not official or representative of the teaching methods and contents of the Professor in question. They are automatically aggregated according to criteria entered by users. The personal data relating to the Professor contained in this page have been collected by the Data Controller (Ladybird s.r.l.) from open sources accessible to the public and / or have been generated directly by the users. The goal is to enrich the contents of the platform for the legitimate interest of Ladybird s.r.l. to improve its usability for the benefit of its users. They will be stored until any opposition to the processing by the interested party, who is entitled to oppose the processing for reasons related to their particular situation, except for the provisions of art. 21 ยง 1, Paragraph 2, GDPR. For more information on the categories of recipients of the personal data and the additional rights of the data subject, please refer to sections B and H respectively of the Docsity privacy policy available at this [link](%s)","docs.docReportingModal.email":"Email","docs.docReportingModal.errorMessage":"We received a report from you regarding this document on %1$s with reason *โ€œ%2$sโ€œ*","docs.docReportingModal.errorTitle":"You have reported this document before","docs.docReportingModal.genericMessage":"We will try to solve this as quickly as possible.","docs.docReportingModal.guestName":"Name and surname","docs.docReportingModal.leaveAmessage":"Leave a message","docs.docReportingModal.optional":"Optional","docs.docReportingModal.reasons.copyrightViolation":"This document contains copyright infringement","docs.docReportingModal.reasons.duplicatedDocument":"This document has been duplicated","docs.docReportingModal.reasons.inconsitentContent":"The content is not consistent with the description","docs.docReportingModal.reasons.uploadedMyDocument":"User has uploaded a document that belongs to me","docs.docReportingModal.required":"Field required","docs.docReportingModal.sendReport":"Send report","docs.docReportingModal.successMessage":"Error processing your request","docs.docReportingModal.successTitle":"Thanks for reporting","docs.docReportingModal.title":"Why do you want to report this document?","docs.docReportingModal.validationError.fieldTooLong":"The max. number of characters is %d","docs.flatSection.academicYear":"Academic Year","docs.flatSection.description":"Description","docs.flatSection.download":"Download","docs.flatSection.favourites":"Favourites","docs.flatSection.follow":"Follow","docs.flatSection.hide":"Hide","docs.flatSection.multipleDocLabel":"Documents","docs.flatSection.multipleReviewsLabel":"Reviews","docs.flatSection.page":"Page","docs.flatSection.pageNumber":"Number of pages","docs.flatSection.pages":"Pages","docs.flatSection.professorPrefix":"Prof. %s","docs.flatSection.sellDateLabel":"Available from","docs.flatSection.showMore":"Show more","docs.flatSection.singleDocLabel":"Document","docs.flatSection.singleReviewsLabel":"Review","docs.flatSection.unfollow":"Unfollow","docs.flatSection.uploadDateLabel":"Uploaded on","docs.header.alreadyDownloadedTitle":"You already downloaded this document","docs.header.alreadyReviewedTitle":"You've already downloaded and reviewed this document","docs.header.review":"%d Review","docs.header.reviews":"%d Reviews","docs.header.uploadedTtile":"You uploaded this document on %s","docs.headingArea.notPublished":"Document not published","docs.headingArea.topTooltip":"One of the most popular and successful documents in our community","docs.hero.multipleDocLabel":"Documents","docs.hero.notPublished":"Document not published","docs.hero.professorPrefix":"Prof. %s","docs.hero.questionsLabel":"What you will learn","docs.hero.review":"%d Review","docs.hero.reviews":"%d Reviews","docs.hero.sellDateLabel":"Available from","docs.hero.singleDocLabel":"Document","docs.hero.typology":"Typology: %s","docs.hero.unknownUser":"unknown user","docs.hero.uploadDateLabel":"Uploaded on","docs.infoArea.alreadyReviewedTitle":"You already downloaded this document","docs.infoArea.uploadedTtile":"You uploaded this document on %s","docs.intentClose.action":"Show others","docs.intentClose.heading":"Abracadabra ๐Ÿ”ฎ More documents for you! Thereโ€™s really no magic, only our massive library!","docs.player.controllerLabel":"Page %1$d / %2$d","docs.player.crossPaywall.buttonPremiumLabel":"Download now","docs.player.crossPaywall.buttonShareLabel":"Share documents","docs.player.crossPaywall.textButtonPremium":"by purchasing a Premium plan","docs.player.crossPaywall.textButtonShare":"and get the points you are missing in **%s hours**","docs.player.downloadBlock.always.buttonLabel":"Download for free","docs.player.downloadBlock.always.copy":"This page cannot be seen from the preview","docs.player.downloadBlock.always.copyLastPage":"You can download it any time from any device","docs.player.downloadBlock.always.title":"You already downloaded this document","docs.player.downloadBlock.always.titleLastPage":"You already downloaded this document","docs.player.downloadBlock.default.buttonLabel":"Download","docs.player.downloadBlock.default.copy":"This page cannot be seen from the preview","docs.player.downloadBlock.default.copyLastPage":"You can download it any time from any device","docs.player.downloadBlock.default.title":"Don't miss anything!","docs.player.downloadBlock.default.titleLastPage":"Download the full document","docs.player.paywallBlock.unlock.buttonLabel":"Read the document","docs.player.paywallBlock.unlock.title":"Register for free to read the full document","docs.player.previewLabel":"Document preview","docs.playerToolbar.pageNumber":"Number of pages","docs.playerToolbar.scrollTop":"Go back to top","docs.priceModal.pointsImgAlt":"Get points","docs.priceModal.pointsLinkLabel":"Other ways to get download points for free","docs.priceModal.pointsSubtitle":"[Upload](%1$s) your documents or [answer](%2$s) questions and get download points in %3$sh","docs.priceModal.pointsTitle":"Get points to download the document","docs.priceModal.premiumImgAlt":"Go Premium","docs.priceModal.premiumLinkLabel":"See our Premium plans","docs.priceModal.premiumSubtitle":"Choose one of our Premium plans and use the points to download your documents right away","docs.priceModal.premiumTitle":"Don't want to wait?","docs.priceSection.discountBadge":"On special offer","docs.priceSection.discountLimitedLabel":"Limited-time offer","docs.priceSection.points":"Points","docs.recentArea.emptyPlaceholder":"Here you'll find the latest visited documents","docs.recentArea.title":"Recently viewed documents","docs.relatedArea.emptyPlaceholder":"There are no similar documents","docs.relatedArea.title":"Related documents","docs.relatedArea.viewOthers":"Show others","docs.reviewsArea.noReviewTitle":"No reviews yet","docs.reviewsArea.title":"Reviews","docs.reviewsArea.viewAll":"View all","docs.reviewsModal.awaitingModeration":"Under moderation","docs.reviewsModal.errorCase":"Something went wrong","docs.reviewsModal.getPoints":"Get %d download points","docs.reviewsModal.leaveReview":"Leave a review","docs.reviewsModal.orderHighest":"Highest rate","docs.reviewsModal.orderLowest":"Lowest rate","docs.reviewsModal.orderRecent":"Most recent","docs.reviewsModal.rating1":"Poor","docs.reviewsModal.rating2":"Insufficient","docs.reviewsModal.rating3":"Sufficient","docs.reviewsModal.rating4":"Good","docs.reviewsModal.rating5":"Excellent","docs.reviewsModal.reload":"Top-up","docs.reviewsModal.showMore":"Show others","docs.reviewsModal.showRatingDetails":"Show more","docs.reviewsModal.sortBy":"Sort by","docs.reviewsModal.title":"Reviews","docs.reviewsModal.whoCanReview":"Only users who downloaded the document can leave a review","docs.reviewsModal.yourReview":"Your review","docs.searchBar.counter":"%(index)s of %(total)s **(%(matches)s visible)**","docs.searchBar.error.button":"Reload","docs.searchBar.error.content":"Try searching again","docs.searchBar.error.title":"Loading error","docs.searchBar.placeholder":"Search in the preview","docs.searchBar.popover.close":"Close","docs.searchBar.popover.download":"Download","docs.searchBar.popover.hasDownload":"Displaying only results that are visible in the preview","docs.searchBar.popover.hasNotDownload":"Displaying results exclusively from pages shown in the preview.**Download the document to see all.**","docs.suggestedArea.title":"Often downloaded together","docs.zoomLabels.zoomExpand":"Enlarge","docs.zoomLabels.zoomMaxWidth":"Maximum Width","docs.zoomLabels.zoomNormal":"Default View","docs.zoomLabels.zoomReduce":"Minimise","docs.zoomLabels.zoomThumbs":"Thumbnails","footer.country.de":"German","footer.country.en":"English","footer.country.es":"Spanish","footer.country.fr":"French","footer.country.pt":"Portuguese","footer.options.howdocsitywork":"How does Docsity work","footer.options.partners":"Partners","footer.options.sell":"Sell documents","footer.options.sellerguide":"Seller's Handbook","footer.options.support":"Contact us","footer.options.whoweare":"About us","footer.options.workwithus":"Career","footer.privacy.cookie":"Cookie Policy","footer.privacy.cookiesetup":"Cookie setup","footer.privacy.privacy":"Privacy Policy","footer.privacy.terms":"Terms of Use","footer.sitemap.biologiaechimica":"Biology and Chemistry","footer.sitemap.country":"Sitemap Languages and Countries","footer.sitemap.economia":"Economics","footer.sitemap.fisica":"Physics","footer.sitemap.giurisprudenza":"Law","footer.sitemap.ingegneria":"Engineering","footer.sitemap.lastquestions":"Latest questions","footer.sitemap.latestdoc":"Sitemap Latest Documents","footer.sitemap.lettereecomunicazione":"Literature and Communication","footer.sitemap.management":"Management","footer.sitemap.medicinaefarmacia":"Medicine and Pharmacy","footer.sitemap.psicologiaesociologia":"Psychology and Sociology","footer.sitemap.resource":"Sitemap Resources","footer.sitemap.scienzepolitiche":"Search Videos Courses and exercises carried out","footer.sitemap.storiaefilosofia":"History and Philosophy","footer.sitemap.supportopersonalizzato":"Customized support","footer.sitemap.tesinedimaturita":"High school diploma papers","footer.sitemap.topics":"Study Topics Sitemap","footer.sitemap.traccesvolteannipassati":"Proofs of previous years","footer.staticroutes.degreethesisLabel":"Thesis","footer.staticroutes.degreethesisUrl":"degree-thesis","footer.staticroutes.examquestionsLabel":"Exam","footer.staticroutes.examquestionsUrl":"exam-questions","footer.staticroutes.exceriseUrl":"exercises","footer.staticroutes.exerciseLabel":"Exercises","footer.staticroutes.notesLabel":"Lecture notes","footer.staticroutes.notesUrl":"lecture-notes","footer.staticroutes.schemesLabel":"Schemes","footer.staticroutes.schemesUrl":"schemes","footer.staticroutes.storeLabel":"Document Store","footer.staticroutes.studynotesLabel":"Study notes","footer.staticroutes.studynotesUrl":"study-notes","footer.staticroutes.summariesLabel":"Summaries","footer.staticroutes.summariesUrl":"summaries","general.docTitle":"%1$s of %2$s","generalDoc.lessInfo":"Less info","generalDoc.moreInfo":"More info","generalDoc.titleSuffix":"%1$s of %2$s","header.common.points":"Points","header.contentArea.blogLink":"Go to the blog","header.contentArea.blogTitle":"From our blog","header.ctaUpload.sellerTooltip":"Share or sell documents","header.ctaUpload.tooltip":"Share documents","header.firstBlock.contentArea.0.heading":"Video Courses","header.firstBlock.contentArea.0.heading_pt":"Videolessons","header.firstBlock.contentArea.0.text":"Prepare yourself with lectures and tests carried out based on university programs!","header.firstBlock.contentArea.1.heading":"Find documents","header.firstBlock.contentArea.1.text":"Prepare for your exams with the study notes shared by other students like you on Docsity","header.firstBlock.contentArea.2.heading":"Search Store documents","header.firstBlock.contentArea.2.text":"The best documents sold by students who completed their studies","header.firstBlock.contentArea.3.heading":"Quiz","header.firstBlock.contentArea.3.text":"Respond to real exam questions and put yourself to the test","header.firstBlock.contentArea.4.link":"Search through all study resources","header.firstBlock.contentArea.6.heading":"Papers %s","header.firstBlock.contentArea.6.text":"Study with past exams, summaries and useful tips","header.firstBlock.contentArea.7.heading":"Explore questions","header.firstBlock.contentArea.7.text":"Clear up your doubts by reading the answers to questions asked by your fellow students","header.firstBlock.contentArea.8.heading":"Study topics","header.firstBlock.contentArea.8.text":"Explore the most downloaded documents for the most popular study topics","header.firstBlock.contentArea.ai":"Summarize your documents, ask them questions, convert them into quizzes and concept maps","header.firstBlock.infoArea.heading":"Prepare for your exams","header.firstBlock.infoArea.text":"Study with the several resources on Docsity","header.login":"Log in","header.menu_voices.advice":"Guidelines and tips","header.menu_voices.ctaEvent":"Go live","header.menu_voices.earn.text":"Sell on Docsity","header.menu_voices.exam":"Prepare for your exams","header.menu_voices.points":"Get points","header.menu_voices.premium":"Premium plans","header.menu_voices.subscrive":"Subscribe","header.notifications.all_notifications":"All notifications","header.notifications.label":"Notifications","header.phoneCondition.conditionOne":"Do not use a VOIP number or a temporary number, they are not accepted","header.phoneCondition.conditionThree":"We will not be able to retrieve your number, so don't lose it","header.phoneCondition.conditionTwo":"You will need your number every time you want to withdraw","header.premium.reload":"Power top-up","header.premium.signup":"Get Premium","header.register":"Sign up","header.search.empty":"No documents found for this query","header.search.label":"Search in","header.search.placeholder":"What are you studying today?","header.search.scope.document":"Documents","header.search.scope.professor":"Professors","header.search.scope.question":"Questions","header.search.scope.quiz":"Quiz","header.search.scope.video":"Video Courses","header.secondBlock.contentArea.0.heading":"Share documents","header.secondBlock.contentArea.0.text":"For each uploaded document","header.secondBlock.contentArea.1.heading":"Answer questions","header.secondBlock.contentArea.1.text":"For each given answer (max 1 per day)","header.secondBlock.contentArea.2.link":"All the ways to get free points","header.secondBlock.contentArea.3.heading":"Get points immediately","header.secondBlock.contentArea.3.heading_premium":"Buy a Power Top-up","header.secondBlock.contentArea.3.text":"Choose a premium plan with all the points you need","header.secondBlock.contentArea.3.text_it_es":"Access all the Video Courses, get Premium Points to download the documents immediately and practice with all the Quizzes","header.secondBlock.contentArea.3.text_premium":"Get additional Premium Points that you can use until your Premium plan is active","header.secondBlock.infoArea.heading":"Earn points to download ","header.secondBlock.infoArea.text":"Earn points by helping other students or get them with a premium plan","header.thirdBlock.contentArea.0.heading":"Choose your next study program","header.thirdBlock.contentArea.0.text":"Get in touch with the best universities in the world. Search through thousands of universities and official partners","header.thirdBlock.contentArea.0.title":"Study Opportunities","header.thirdBlock.contentArea.1.title":"Community","header.thirdBlock.contentArea.2.heading":"Ask the community","header.thirdBlock.contentArea.2.text":"Ask the community for help and clear up your study doubts ","header.thirdBlock.contentArea.3.heading":"University Rankings","header.thirdBlock.contentArea.3.text":"Discover the best universities in your country according to Docsity users","header.thirdBlock.contentArea.4.heading":"Our save-the-student-ebooks!","header.thirdBlock.contentArea.4.text":"Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors","header.thirdBlock.contentArea.4.title":"Free resources","header.usermenu.ai":"Docsity AI","header.usermenu.b2b":"Study Plans","header.usermenu.chiedi_supporto":"Get support","header.usermenu.documenti":"My documents","header.usermenu.documenti_fav":"Favourites","header.usermenu.domande":"My questions","header.usermenu.downloaded":"Downloaded","header.usermenu.gestione_abbonamento":"Manage your subscription","header.usermenu.gestione_account":"Manage account","header.usermenu.homepage":"Home","header.usermenu.lezioni":"My lessons","header.usermenu.recensioni":"My reviews","header.usermenu.uploaded":"Uploaded","header.usermenu.vendite":"Sales area","header.usermenu.vendite.chip":"Balance","header.usermenu.videocorsi":"My video courses","modals.modify_email_action_label":"Change email","modals.modify_email_heading":"Change you email address","modals.modify_email_placeholder":"Insert email address","modals.resend_email_action":"Request email","modals.resend_email_body":"** Before requesting the email, log in to your mailbox ** to make sure it's still active","modals.resend_email_body_guest":"Before proceeding, confirm your email address and complete your profile to receive %s free download points right away. We sent you a link to confirm your email address.","modals.resend_email_heading":"Request confirmation email","modals.resend_email_invalid_confirm":"Resend confirmation email","modals.resend_email_invalid_description":"Please enter a valid email address","modals.resend_email_invalid_divider":"Or","modals.resend_email_invalid_edit":"Change email","modals.resend_email_invalid_modifica":"to keep the current one","modals.resend_email_invalid_title":"Your email address does not appear to be valid.","modals.resend_email_success_action":"Resend email","modals.resend_email_success_body":"Check if you received it at following email address: %s. If you don't find it in your inbox, check your spam folder.","modals.resend_email_success_title":"We sent you another email","notifications.actionButton.document.ko.review":"Read our guidelines","notifications.actionButton.points":"Find documents","notifications.actionButton.profile":"See suggestions","notifications.actionButton.review":"Leave a review","notifications.actionButton.seller":"Read the Strategies","notifications.actionButton.share":"Share","notifications.actionButtonGroup.point_blue":"Find documents","notifications.actionButtonGroup.review":"Leave a review","notifications.actionTextGroup.document_store":"Spread the word to other students like you","notifications.actionTextGroup.point_blue":"Download your favourite documents right away!","notifications.actionTextGroup.points":"Download your favourite documents right away!","notifications.content.document.change_approved":"The changes to document **%s** were approved","notifications.content.document.change_rejected":"The changes to document **%s** were not approved","notifications.content.document.ko.afterReview":"Te review of your document โ€œ%sโ€ has not been accepted, as the document does not meet our guidelines","notifications.content.document.ko.noReview":"Your document โ€%s\" wasn't published. \u003cbr/\u003e\u003cu\u003e**Read our guidelines**\u003c/u\u003e","notifications.content.document.ko.review":"Your document โ€%s\" wasn't published. \u003cbr/\u003e\u003cu\u003e**Request a review**\u003c/u\u003e","notifications.content.document.store_approved":"The %s document is officially on sale at the Store","notifications.content.invoice.ready":"A new invoice is available in your personal area","notifications.content.oboarding_b2b":"We help you find **work and study opportunities that suit you:** answer a few questions and get %s Download Points","notifications.content.point_blue_answer":"You received %s Download pts for answering the question %s","notifications.content.point_blue_answer_best":"You received %s Download pts because your answer was rated as the best answer.","notifications.content.point_blue_document_download":"You received %s Download pts because %s users downloaded your document %s","notifications.content.point_blue_document_download_1":"You received %s Download pts because a user downloaded your document %s","notifications.content.point_blue_document_promoted":"You have received **%d Download points** for promoting your documents to **Top**","notifications.content.point_blue_document_request":"Some of your documents have been selected to become **Top**. Promote them and earn **%d Download points for each**","notifications.content.point_blue_profile":"You received %s Download pts for completing your profile.","notifications.content.point_blue_review_document":"You received %s Download pts for leaving a review to %s","notifications.content.point_blue_review_professor":"You received %s Download points for reviewing professor %s","notifications.content.point_blue_review_university":"You received %s Download pts for leaving a review to %s","notifications.content.point_blue_upload":"You received %s Download pts for uploading the document %s","notifications.content.point_yellow.renewal":"You received %s Premium pts upon the renewal of your %s subscription.","notifications.content.profile":"Did you know that we suggest **content based on the subjects listed in your profile**? These are associated with the documents you have downloaded to date, but **you can update them whenever you want**!","notifications.content.question.answer":"%s replied to your question: %s.","notifications.content.question.answer_comment":"%s commented your answer to the question: %s.","notifications.content.question.answer_follow":"%s replied to the question you follow: %s.","notifications.content.question.comment":"%s added a comment to your question: %s.","notifications.content.review.notify_received":"You received new reviews last week!","notifications.content.review.receive_document":"%s rated your document: %s.","notifications.content.review.release_course":"What do you think of the **%s** course?","notifications.content.review.release_document":"Leave a review to %s and get %d Download points.","notifications.content.review.release_document_free":"Review the document you downloaded: %s\",2020-12-17 17:41:08","notifications.content.review.release_professor":"Do you know prof. %s? Write a review and get %d download points","notifications.content.review.release_professors":"Review your University professors and earn Download points","notifications.content.seller":"Learn now about some **Selling strategies**","notifications.content.seller.discovery":"Learn now about some **Selling strategies**","notifications.content.withdrawal.pending_fraud":"Your **withdrawals are suspended** because our payment gateway **has abnormal requests**. We are verifying that everything is ok.","notifications.contentGroup.comments":"%s and other %s users added a comment to your question: %s.","notifications.contentGroup.comments_2":"%s and another user added a comment to your question: %s.","notifications.contentGroup.docreviews_2":"You have %s pending reviews. Get %d Download points for each reviewed document","notifications.contentGroup.docreviews_free":"**%s** and other %s users replied to your question: %s.","notifications.contentGroup.documents":"%s and other %s users reviewed your document: %s.","notifications.contentGroup.documents_2":"%s and another user reviewed your document: %s.","notifications.contentGroup.follows":"%s and other %s users replied to a question you follow: %s.","notifications.contentGroup.follows_2":"%s and another user replied a question you follow: %s.","notifications.contentGroup.point_blue":"You received %s Download points since the last time.","notifications.contentGroup.point_blue_review_professor":"You received %s Download points since the last time","notifications.contentGroup.question_answers":"**%s** and other %s users replied to your question: \"%s\".","notifications.contentGroup.question_answers_2":"%s and another user replied to your question: %s.","notifications.contentGroup.questions":"%s and other %s commented your answer to the question: %s.","notifications.contentGroup.questions_2comments":"%s and another user commented your answer to the question: %s.","shareModal.copyAction":"Copy","shareModal.linkCopied":"Link copied!","shareModal.title":"Share \"%s\"","word.common.documenti":"Documents","word.common.domande":"questions","word.common.maturita":"maturity","word.common.quiz":"Quiz","word.common.test":"test","word.common.universita":"University","word.common.veditutte":"View all","word.common.veditutti":"View all","word.common.video":"Video Courses","default":{"alerts.action_spacer":"or","alerts.back_lang.action":"Back to %s language","alerts.complete_profile.link":"Complete profile","alerts.complete_profile.text":"Help us recommend the best content for you and receive instantly **%s download points**","alerts.confirm_email.action_modifica":"Change email address","alerts.confirm_email.action_reinvia":"Resend email.","alerts.confirm_email.text":"Confirm your email address by clicking on the link we sent you at %s.","alerts.diff_lang.action":"Click here","alerts.diff_lang.text":"You are browsing in a language other than your own","alerts.invalid_email.action_modifica":"Change email","alerts.invalid_email.action_resend":"Resend email","alerts.invalid_email.text":"We are unable to send the confirmation email to your address: **%s**","alerts.low_points.action":"Get points immediately","alerts.low_points.main":"You are running out of Download Points.","common.date.formatAcademicYear":"Pre %s","completeProfile.form_label":"Birth year","completeProfile.form_label_cta":"Confirm data","completeProfile.label_cta":"Start now","completeProfile.text_default_1":"You'll earn % points","completeProfile.text_default_2":"to download documents and gain access to free Video Courses and Quizzes","completeProfile.text_default_3":"to download documents","completeProfile.text_guest":"To proceed, enter the missing data","completeProfile.title_default":"Update your profile to continue","completeProfile.title_guest":"Oops, looks like you missed something!","docProfessorModal.disclaimer":"The page is generated automatically and is not managed by a person (the Professor or anyone else). The documents listed are not official or representative of the teaching methods and contents of the Professor in question. They are automatically aggregated according to criteria entered by users. The personal data relating to the Professor contained in this page have been collected by the Data Controller (Ladybird s.r.l.) from open sources accessible to the public and / or have been generated directly by the users. The goal is to enrich the contents of the platform for the legitimate interest of Ladybird s.r.l. to improve its usability for the benefit of its users. They will be stored until any opposition to the processing by the interested party, who is entitled to oppose the processing for reasons related to their particular situation, except for the provisions of art. 21 ยง 1, Paragraph 2, GDPR. For more information on the categories of recipients of the personal data and the additional rights of the data subject, please refer to sections B and H respectively of the Docsity privacy policy available at this [link](%s)","docs.abstractArea.documents":"Documents","docs.abstractArea.seoString":"Download %1$s and more %2$s %3$s in PDF only on Docsity!","docs.abstractArea.thisSubject":"This subject","docs.abstractArea.title":"Partial preview of the text","docs.actionSection.disabledByLanguageUser":"Only %s Docsity users can download this document","docs.actionSection.disabledByUserNotSeller":"We have received reports about this document. The download is temporarily disabled.","docs.actions.addFavourite":"Add to favourites","docs.actions.approveDocument":"Approve Document","docs.actions.approveDocument.force":"Force document approval","docs.actions.cannotEditPrime":"This document can no longer be modified because it has been promoted as a Top Document","docs.actions.deleteDocument":"Delete","docs.actions.download":"Download","docs.actions.downloadDocuemnt":"Download the document","docs.actions.edit":"Edit","docs.actions.follow":"Follow","docs.actions.reconvertDocument.errorMessage":"Error during the request","docs.actions.reconvertDocument.label":"Convert the document","docs.actions.reconvertDocument.successMessage":"Conversion successfully completed","docs.actions.remove":"Remove","docs.actions.removeFavourite":"Remove from favourites","docs.actions.reportDocument":"Report document","docs.actions.requestError":"An error has occurred","docs.actions.requestSuccess":"Request submitted, wait a few seconds and reload the page","docs.actions.review":"Leave a review","docs.actions.save":"Save","docs.actions.shareDocTooltip":"Share document","docs.actions.shareLabel":"Share","docs.actions.unfollow":"Unfollow","docs.actions.useAI":"Try Docsity AI","docs.actions.watchReview":"Your review","docs.aiOffCanvas.aiAlertFreemium":"**Free trial on %s documents or use without limits with Premium**","docs.aiOffCanvas.aiCtaDownload":"Download document","docs.aiOffCanvas.aiDownload":"You can use AI after downloading the document","docs.aiOffCanvas.aiDownloadDocument":"**AI is available with a Premium plan.** You can use AI after downloading the document, no additional cost.","docs.aiOffCanvas.aiFeaturePoints":"%s points","docs.aiOffCanvas.chat.infoPoint1":"Explore the content of a document with chat responses","docs.aiOffCanvas.chat.infoPoint2":"Clear any doubts to study in less time","docs.aiOffCanvas.chat.title":"Ask the document","docs.aiOffCanvas.map.infoPoint1":"Get the conceptual map of a document, generated by the AI","docs.aiOffCanvas.map.infoPoint2":"Edit the map","docs.aiOffCanvas.map.infoPoint3":"Download a PNG","docs.aiOffCanvas.map.title":"Concept map","docs.aiOffCanvas.points":"points","docs.aiOffCanvas.quiz.infoPoint1":"Generate a number of questions on the topics covered by the document","docs.aiOffCanvas.quiz.infoPoint2":"Download the PDF quiz so you can study whenever you want","docs.aiOffCanvas.quiz.infoPoint3":"Get the correct answer for each question","docs.aiOffCanvas.quiz.title":"Quiz","docs.aiOffCanvas.subtitle":"What you can get","docs.aiOffCanvas.summary.infoPoint1":"Summary of approximately 70%, in just a few minutes and in PDF format","docs.aiOffCanvas.summary.infoPoint1updated":"Summarise the document in a few minutes","docs.aiOffCanvas.summary.infoPoint2":"Download the summary document in PDF format","docs.aiOffCanvas.summary.infoPoint2updated":"Download the summary in PDF format","docs.aiOffCanvas.summary.title":"Summary","docs.aiOffCanvas.title":"Use Docsity AI on the document","docs.aiOffCanvas.titleUpdated":"Download the document to use AI","docs.breadcrumb.free":"Documents","docs.breadcrumb.store":"Store","docs.ctaArea.toggleSidebarTooltip":"Find here **related documents** and other useful resources","docs.ctaMessages.AI":"AI","docs.ctaMessages.alreadyDownloadedTitle":"You already downloaded this document","docs.ctaMessages.alreadyReviewedTitle":"You've already downloaded and reviewed this document","docs.ctaMessages.descriptionAI":"Make a summary, create a concept map or a quiz from this document","docs.ctaMessages.disabledByLanguageUser":"Only %s Docsity users can download this document","docs.ctaMessages.disabledByUserNotSeller":"This document is temporarily unavailable for download","docs.ctaMessages.discountBadge":"On special offer","docs.ctaMessages.myDocumentOffer":"Your document is discounted temporarily","docs.ctaMessages.uploadedTtile":"You uploaded this document on %s","docs.docDeletionModal.empty":"The field is mandatory","docs.docDeletionModal.notice":"Document_notice","docs.docDeletionModal.report":"Reports","docs.docDeletionModal.submit":"Delete Document","docs.docDeletionModal.textArea.label":"Notes","docs.docDeletionModal.textArea.optional":"(optional)","docs.docDeletionModal.textArea.placeholder":"Write here...","docs.docDeletionModal.title":"Select the reason for deletion","docs.docMyDiscountModal.close":"OK, close","docs.docMyDiscountModal.content":"Since this document was not receiving downloads, we decided to discount it to. When the number of downloads goes back up, we will increase the price again.","docs.docMyDiscountModal.title":"This document has been discounted","docs.docProfessorModal.disclaimer":"The page is generated automatically and is not managed by a person (the Professor or anyone else). The documents listed are not official or representative of the teaching methods and contents of the Professor in question. They are automatically aggregated according to criteria entered by users. The personal data relating to the Professor contained in this page have been collected by the Data Controller (Ladybird s.r.l.) from open sources accessible to the public and / or have been generated directly by the users. The goal is to enrich the contents of the platform for the legitimate interest of Ladybird s.r.l. to improve its usability for the benefit of its users. They will be stored until any opposition to the processing by the interested party, who is entitled to oppose the processing for reasons related to their particular situation, except for the provisions of art. 21 ยง 1, Paragraph 2, GDPR. For more information on the categories of recipients of the personal data and the additional rights of the data subject, please refer to sections B and H respectively of the Docsity privacy policy available at this [link](%s)","docs.docReportingModal.email":"Email","docs.docReportingModal.errorMessage":"We received a report from you regarding this document on %1$s with reason *โ€œ%2$sโ€œ*","docs.docReportingModal.errorTitle":"You have reported this document before","docs.docReportingModal.genericMessage":"We will try to solve this as quickly as possible.","docs.docReportingModal.guestName":"Name and surname","docs.docReportingModal.leaveAmessage":"Leave a message","docs.docReportingModal.optional":"Optional","docs.docReportingModal.reasons.copyrightViolation":"This document contains copyright infringement","docs.docReportingModal.reasons.duplicatedDocument":"This document has been duplicated","docs.docReportingModal.reasons.inconsitentContent":"The content is not consistent with the description","docs.docReportingModal.reasons.uploadedMyDocument":"User has uploaded a document that belongs to me","docs.docReportingModal.required":"Field required","docs.docReportingModal.sendReport":"Send report","docs.docReportingModal.successMessage":"Error processing your request","docs.docReportingModal.successTitle":"Thanks for reporting","docs.docReportingModal.title":"Why do you want to report this document?","docs.docReportingModal.validationError.fieldTooLong":"The max. number of characters is %d","docs.flatSection.academicYear":"Academic Year","docs.flatSection.description":"Description","docs.flatSection.download":"Download","docs.flatSection.favourites":"Favourites","docs.flatSection.follow":"Follow","docs.flatSection.hide":"Hide","docs.flatSection.multipleDocLabel":"Documents","docs.flatSection.multipleReviewsLabel":"Reviews","docs.flatSection.page":"Page","docs.flatSection.pageNumber":"Number of pages","docs.flatSection.pages":"Pages","docs.flatSection.professorPrefix":"Prof. %s","docs.flatSection.sellDateLabel":"Available from","docs.flatSection.showMore":"Show more","docs.flatSection.singleDocLabel":"Document","docs.flatSection.singleReviewsLabel":"Review","docs.flatSection.unfollow":"Unfollow","docs.flatSection.uploadDateLabel":"Uploaded on","docs.header.alreadyDownloadedTitle":"You already downloaded this document","docs.header.alreadyReviewedTitle":"You've already downloaded and reviewed this document","docs.header.review":"%d Review","docs.header.reviews":"%d Reviews","docs.header.uploadedTtile":"You uploaded this document on %s","docs.headingArea.notPublished":"Document not published","docs.headingArea.topTooltip":"One of the most popular and successful documents in our community","docs.hero.multipleDocLabel":"Documents","docs.hero.notPublished":"Document not published","docs.hero.professorPrefix":"Prof. %s","docs.hero.questionsLabel":"What you will learn","docs.hero.review":"%d Review","docs.hero.reviews":"%d Reviews","docs.hero.sellDateLabel":"Available from","docs.hero.singleDocLabel":"Document","docs.hero.typology":"Typology: %s","docs.hero.unknownUser":"unknown user","docs.hero.uploadDateLabel":"Uploaded on","docs.infoArea.alreadyReviewedTitle":"You already downloaded this document","docs.infoArea.uploadedTtile":"You uploaded this document on %s","docs.intentClose.action":"Show others","docs.intentClose.heading":"Abracadabra ๐Ÿ”ฎ More documents for you! Thereโ€™s really no magic, only our massive library!","docs.player.controllerLabel":"Page %1$d / %2$d","docs.player.crossPaywall.buttonPremiumLabel":"Download now","docs.player.crossPaywall.buttonShareLabel":"Share documents","docs.player.crossPaywall.textButtonPremium":"by purchasing a Premium plan","docs.player.crossPaywall.textButtonShare":"and get the points you are missing in **%s hours**","docs.player.downloadBlock.always.buttonLabel":"Download for free","docs.player.downloadBlock.always.copy":"This page cannot be seen from the preview","docs.player.downloadBlock.always.copyLastPage":"You can download it any time from any device","docs.player.downloadBlock.always.title":"You already downloaded this document","docs.player.downloadBlock.always.titleLastPage":"You already downloaded this document","docs.player.downloadBlock.default.buttonLabel":"Download","docs.player.downloadBlock.default.copy":"This page cannot be seen from the preview","docs.player.downloadBlock.default.copyLastPage":"You can download it any time from any device","docs.player.downloadBlock.default.title":"Don't miss anything!","docs.player.downloadBlock.default.titleLastPage":"Download the full document","docs.player.paywallBlock.unlock.buttonLabel":"Read the document","docs.player.paywallBlock.unlock.title":"Register for free to read the full document","docs.player.previewLabel":"Document preview","docs.playerToolbar.pageNumber":"Number of pages","docs.playerToolbar.scrollTop":"Go back to top","docs.priceModal.pointsImgAlt":"Get points","docs.priceModal.pointsLinkLabel":"Other ways to get download points for free","docs.priceModal.pointsSubtitle":"[Upload](%1$s) your documents or [answer](%2$s) questions and get download points in %3$sh","docs.priceModal.pointsTitle":"Get points to download the document","docs.priceModal.premiumImgAlt":"Go Premium","docs.priceModal.premiumLinkLabel":"See our Premium plans","docs.priceModal.premiumSubtitle":"Choose one of our Premium plans and use the points to download your documents right away","docs.priceModal.premiumTitle":"Don't want to wait?","docs.priceSection.discountBadge":"On special offer","docs.priceSection.discountLimitedLabel":"Limited-time offer","docs.priceSection.points":"Points","docs.recentArea.emptyPlaceholder":"Here you'll find the latest visited documents","docs.recentArea.title":"Recently viewed documents","docs.relatedArea.emptyPlaceholder":"There are no similar documents","docs.relatedArea.title":"Related documents","docs.relatedArea.viewOthers":"Show others","docs.reviewsArea.noReviewTitle":"No reviews yet","docs.reviewsArea.title":"Reviews","docs.reviewsArea.viewAll":"View all","docs.reviewsModal.awaitingModeration":"Under moderation","docs.reviewsModal.errorCase":"Something went wrong","docs.reviewsModal.getPoints":"Get %d download points","docs.reviewsModal.leaveReview":"Leave a review","docs.reviewsModal.orderHighest":"Highest rate","docs.reviewsModal.orderLowest":"Lowest rate","docs.reviewsModal.orderRecent":"Most recent","docs.reviewsModal.rating1":"Poor","docs.reviewsModal.rating2":"Insufficient","docs.reviewsModal.rating3":"Sufficient","docs.reviewsModal.rating4":"Good","docs.reviewsModal.rating5":"Excellent","docs.reviewsModal.reload":"Top-up","docs.reviewsModal.showMore":"Show others","docs.reviewsModal.showRatingDetails":"Show more","docs.reviewsModal.sortBy":"Sort by","docs.reviewsModal.title":"Reviews","docs.reviewsModal.whoCanReview":"Only users who downloaded the document can leave a review","docs.reviewsModal.yourReview":"Your review","docs.searchBar.counter":"%(index)s of %(total)s **(%(matches)s visible)**","docs.searchBar.error.button":"Reload","docs.searchBar.error.content":"Try searching again","docs.searchBar.error.title":"Loading error","docs.searchBar.placeholder":"Search in the preview","docs.searchBar.popover.close":"Close","docs.searchBar.popover.download":"Download","docs.searchBar.popover.hasDownload":"Displaying only results that are visible in the preview","docs.searchBar.popover.hasNotDownload":"Displaying results exclusively from pages shown in the preview.**Download the document to see all.**","docs.suggestedArea.title":"Often downloaded together","docs.zoomLabels.zoomExpand":"Enlarge","docs.zoomLabels.zoomMaxWidth":"Maximum Width","docs.zoomLabels.zoomNormal":"Default View","docs.zoomLabels.zoomReduce":"Minimise","docs.zoomLabels.zoomThumbs":"Thumbnails","footer.country.de":"German","footer.country.en":"English","footer.country.es":"Spanish","footer.country.fr":"French","footer.country.pt":"Portuguese","footer.options.howdocsitywork":"How does Docsity work","footer.options.partners":"Partners","footer.options.sell":"Sell documents","footer.options.sellerguide":"Seller's Handbook","footer.options.support":"Contact us","footer.options.whoweare":"About us","footer.options.workwithus":"Career","footer.privacy.cookie":"Cookie Policy","footer.privacy.cookiesetup":"Cookie setup","footer.privacy.privacy":"Privacy Policy","footer.privacy.terms":"Terms of Use","footer.sitemap.biologiaechimica":"Biology and Chemistry","footer.sitemap.country":"Sitemap Languages and Countries","footer.sitemap.economia":"Economics","footer.sitemap.fisica":"Physics","footer.sitemap.giurisprudenza":"Law","footer.sitemap.ingegneria":"Engineering","footer.sitemap.lastquestions":"Latest questions","footer.sitemap.latestdoc":"Sitemap Latest Documents","footer.sitemap.lettereecomunicazione":"Literature and Communication","footer.sitemap.management":"Management","footer.sitemap.medicinaefarmacia":"Medicine and Pharmacy","footer.sitemap.psicologiaesociologia":"Psychology and Sociology","footer.sitemap.resource":"Sitemap Resources","footer.sitemap.scienzepolitiche":"Search Videos Courses and exercises carried out","footer.sitemap.storiaefilosofia":"History and Philosophy","footer.sitemap.supportopersonalizzato":"Customized support","footer.sitemap.tesinedimaturita":"High school diploma papers","footer.sitemap.topics":"Study Topics Sitemap","footer.sitemap.traccesvolteannipassati":"Proofs of previous years","footer.staticroutes.degreethesisLabel":"Thesis","footer.staticroutes.degreethesisUrl":"degree-thesis","footer.staticroutes.examquestionsLabel":"Exam","footer.staticroutes.examquestionsUrl":"exam-questions","footer.staticroutes.exceriseUrl":"exercises","footer.staticroutes.exerciseLabel":"Exercises","footer.staticroutes.notesLabel":"Lecture notes","footer.staticroutes.notesUrl":"lecture-notes","footer.staticroutes.schemesLabel":"Schemes","footer.staticroutes.schemesUrl":"schemes","footer.staticroutes.storeLabel":"Document Store","footer.staticroutes.studynotesLabel":"Study notes","footer.staticroutes.studynotesUrl":"study-notes","footer.staticroutes.summariesLabel":"Summaries","footer.staticroutes.summariesUrl":"summaries","general.docTitle":"%1$s of %2$s","generalDoc.lessInfo":"Less info","generalDoc.moreInfo":"More info","generalDoc.titleSuffix":"%1$s of %2$s","header.common.points":"Points","header.contentArea.blogLink":"Go to the blog","header.contentArea.blogTitle":"From our blog","header.ctaUpload.sellerTooltip":"Share or sell documents","header.ctaUpload.tooltip":"Share documents","header.firstBlock.contentArea.0.heading":"Video Courses","header.firstBlock.contentArea.0.heading_pt":"Videolessons","header.firstBlock.contentArea.0.text":"Prepare yourself with lectures and tests carried out based on university programs!","header.firstBlock.contentArea.1.heading":"Find documents","header.firstBlock.contentArea.1.text":"Prepare for your exams with the study notes shared by other students like you on Docsity","header.firstBlock.contentArea.2.heading":"Search Store documents","header.firstBlock.contentArea.2.text":"The best documents sold by students who completed their studies","header.firstBlock.contentArea.3.heading":"Quiz","header.firstBlock.contentArea.3.text":"Respond to real exam questions and put yourself to the test","header.firstBlock.contentArea.4.link":"Search through all study resources","header.firstBlock.contentArea.6.heading":"Papers %s","header.firstBlock.contentArea.6.text":"Study with past exams, summaries and useful tips","header.firstBlock.contentArea.7.heading":"Explore questions","header.firstBlock.contentArea.7.text":"Clear up your doubts by reading the answers to questions asked by your fellow students","header.firstBlock.contentArea.8.heading":"Study topics","header.firstBlock.contentArea.8.text":"Explore the most downloaded documents for the most popular study topics","header.firstBlock.contentArea.ai":"Summarize your documents, ask them questions, convert them into quizzes and concept maps","header.firstBlock.infoArea.heading":"Prepare for your exams","header.firstBlock.infoArea.text":"Study with the several resources on Docsity","header.login":"Log in","header.menu_voices.advice":"Guidelines and tips","header.menu_voices.ctaEvent":"Go live","header.menu_voices.earn.text":"Sell on Docsity","header.menu_voices.exam":"Prepare for your exams","header.menu_voices.points":"Get points","header.menu_voices.premium":"Premium plans","header.menu_voices.subscrive":"Subscribe","header.notifications.all_notifications":"All notifications","header.notifications.label":"Notifications","header.phoneCondition.conditionOne":"Do not use a VOIP number or a temporary number, they are not accepted","header.phoneCondition.conditionThree":"We will not be able to retrieve your number, so don't lose it","header.phoneCondition.conditionTwo":"You will need your number every time you want to withdraw","header.premium.reload":"Power top-up","header.premium.signup":"Get Premium","header.register":"Sign up","header.search.empty":"No documents found for this query","header.search.label":"Search in","header.search.placeholder":"What are you studying today?","header.search.scope.document":"Documents","header.search.scope.professor":"Professors","header.search.scope.question":"Questions","header.search.scope.quiz":"Quiz","header.search.scope.video":"Video Courses","header.secondBlock.contentArea.0.heading":"Share documents","header.secondBlock.contentArea.0.text":"For each uploaded document","header.secondBlock.contentArea.1.heading":"Answer questions","header.secondBlock.contentArea.1.text":"For each given answer (max 1 per day)","header.secondBlock.contentArea.2.link":"All the ways to get free points","header.secondBlock.contentArea.3.heading":"Get points immediately","header.secondBlock.contentArea.3.heading_premium":"Buy a Power Top-up","header.secondBlock.contentArea.3.text":"Choose a premium plan with all the points you need","header.secondBlock.contentArea.3.text_it_es":"Access all the Video Courses, get Premium Points to download the documents immediately and practice with all the Quizzes","header.secondBlock.contentArea.3.text_premium":"Get additional Premium Points that you can use until your Premium plan is active","header.secondBlock.infoArea.heading":"Earn points to download ","header.secondBlock.infoArea.text":"Earn points by helping other students or get them with a premium plan","header.thirdBlock.contentArea.0.heading":"Choose your next study program","header.thirdBlock.contentArea.0.text":"Get in touch with the best universities in the world. Search through thousands of universities and official partners","header.thirdBlock.contentArea.0.title":"Study Opportunities","header.thirdBlock.contentArea.1.title":"Community","header.thirdBlock.contentArea.2.heading":"Ask the community","header.thirdBlock.contentArea.2.text":"Ask the community for help and clear up your study doubts ","header.thirdBlock.contentArea.3.heading":"University Rankings","header.thirdBlock.contentArea.3.text":"Discover the best universities in your country according to Docsity users","header.thirdBlock.contentArea.4.heading":"Our save-the-student-ebooks!","header.thirdBlock.contentArea.4.text":"Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors","header.thirdBlock.contentArea.4.title":"Free resources","header.usermenu.ai":"Docsity AI","header.usermenu.b2b":"Study Plans","header.usermenu.chiedi_supporto":"Get support","header.usermenu.documenti":"My documents","header.usermenu.documenti_fav":"Favourites","header.usermenu.domande":"My questions","header.usermenu.downloaded":"Downloaded","header.usermenu.gestione_abbonamento":"Manage your subscription","header.usermenu.gestione_account":"Manage account","header.usermenu.homepage":"Home","header.usermenu.lezioni":"My lessons","header.usermenu.recensioni":"My reviews","header.usermenu.uploaded":"Uploaded","header.usermenu.vendite":"Sales area","header.usermenu.vendite.chip":"Balance","header.usermenu.videocorsi":"My video courses","modals.modify_email_action_label":"Change email","modals.modify_email_heading":"Change you email address","modals.modify_email_placeholder":"Insert email address","modals.resend_email_action":"Request email","modals.resend_email_body":"** Before requesting the email, log in to your mailbox ** to make sure it's still active","modals.resend_email_body_guest":"Before proceeding, confirm your email address and complete your profile to receive %s free download points right away. We sent you a link to confirm your email address.","modals.resend_email_heading":"Request confirmation email","modals.resend_email_invalid_confirm":"Resend confirmation email","modals.resend_email_invalid_description":"Please enter a valid email address","modals.resend_email_invalid_divider":"Or","modals.resend_email_invalid_edit":"Change email","modals.resend_email_invalid_modifica":"to keep the current one","modals.resend_email_invalid_title":"Your email address does not appear to be valid.","modals.resend_email_success_action":"Resend email","modals.resend_email_success_body":"Check if you received it at following email address: %s. If you don't find it in your inbox, check your spam folder.","modals.resend_email_success_title":"We sent you another email","notifications.actionButton.document.ko.review":"Read our guidelines","notifications.actionButton.points":"Find documents","notifications.actionButton.profile":"See suggestions","notifications.actionButton.review":"Leave a review","notifications.actionButton.seller":"Read the Strategies","notifications.actionButton.share":"Share","notifications.actionButtonGroup.point_blue":"Find documents","notifications.actionButtonGroup.review":"Leave a review","notifications.actionTextGroup.document_store":"Spread the word to other students like you","notifications.actionTextGroup.point_blue":"Download your favourite documents right away!","notifications.actionTextGroup.points":"Download your favourite documents right away!","notifications.content.document.change_approved":"The changes to document **%s** were approved","notifications.content.document.change_rejected":"The changes to document **%s** were not approved","notifications.content.document.ko.afterReview":"Te review of your document โ€œ%sโ€ has not been accepted, as the document does not meet our guidelines","notifications.content.document.ko.noReview":"Your document โ€%s\" wasn't published. \u003cbr/\u003e\u003cu\u003e**Read our guidelines**\u003c/u\u003e","notifications.content.document.ko.review":"Your document โ€%s\" wasn't published. \u003cbr/\u003e\u003cu\u003e**Request a review**\u003c/u\u003e","notifications.content.document.store_approved":"The %s document is officially on sale at the Store","notifications.content.invoice.ready":"A new invoice is available in your personal area","notifications.content.oboarding_b2b":"We help you find **work and study opportunities that suit you:** answer a few questions and get %s Download Points","notifications.content.point_blue_answer":"You received %s Download pts for answering the question %s","notifications.content.point_blue_answer_best":"You received %s Download pts because your answer was rated as the best answer.","notifications.content.point_blue_document_download":"You received %s Download pts because %s users downloaded your document %s","notifications.content.point_blue_document_download_1":"You received %s Download pts because a user downloaded your document %s","notifications.content.point_blue_document_promoted":"You have received **%d Download points** for promoting your documents to **Top**","notifications.content.point_blue_document_request":"Some of your documents have been selected to become **Top**. Promote them and earn **%d Download points for each**","notifications.content.point_blue_profile":"You received %s Download pts for completing your profile.","notifications.content.point_blue_review_document":"You received %s Download pts for leaving a review to %s","notifications.content.point_blue_review_professor":"You received %s Download points for reviewing professor %s","notifications.content.point_blue_review_university":"You received %s Download pts for leaving a review to %s","notifications.content.point_blue_upload":"You received %s Download pts for uploading the document %s","notifications.content.point_yellow.renewal":"You received %s Premium pts upon the renewal of your %s subscription.","notifications.content.profile":"Did you know that we suggest **content based on the subjects listed in your profile**? These are associated with the documents you have downloaded to date, but **you can update them whenever you want**!","notifications.content.question.answer":"%s replied to your question: %s.","notifications.content.question.answer_comment":"%s commented your answer to the question: %s.","notifications.content.question.answer_follow":"%s replied to the question you follow: %s.","notifications.content.question.comment":"%s added a comment to your question: %s.","notifications.content.review.notify_received":"You received new reviews last week!","notifications.content.review.receive_document":"%s rated your document: %s.","notifications.content.review.release_course":"What do you think of the **%s** course?","notifications.content.review.release_document":"Leave a review to %s and get %d Download points.","notifications.content.review.release_document_free":"Review the document you downloaded: %s\",2020-12-17 17:41:08","notifications.content.review.release_professor":"Do you know prof. %s? Write a review and get %d download points","notifications.content.review.release_professors":"Review your University professors and earn Download points","notifications.content.seller":"Learn now about some **Selling strategies**","notifications.content.seller.discovery":"Learn now about some **Selling strategies**","notifications.content.withdrawal.pending_fraud":"Your **withdrawals are suspended** because our payment gateway **has abnormal requests**. We are verifying that everything is ok.","notifications.contentGroup.comments":"%s and other %s users added a comment to your question: %s.","notifications.contentGroup.comments_2":"%s and another user added a comment to your question: %s.","notifications.contentGroup.docreviews_2":"You have %s pending reviews. Get %d Download points for each reviewed document","notifications.contentGroup.docreviews_free":"**%s** and other %s users replied to your question: %s.","notifications.contentGroup.documents":"%s and other %s users reviewed your document: %s.","notifications.contentGroup.documents_2":"%s and another user reviewed your document: %s.","notifications.contentGroup.follows":"%s and other %s users replied to a question you follow: %s.","notifications.contentGroup.follows_2":"%s and another user replied a question you follow: %s.","notifications.contentGroup.point_blue":"You received %s Download points since the last time.","notifications.contentGroup.point_blue_review_professor":"You received %s Download points since the last time","notifications.contentGroup.question_answers":"**%s** and other %s users replied to your question: \"%s\".","notifications.contentGroup.question_answers_2":"%s and another user replied to your question: %s.","notifications.contentGroup.questions":"%s and other %s commented your answer to the question: %s.","notifications.contentGroup.questions_2comments":"%s and another user commented your answer to the question: %s.","shareModal.copyAction":"Copy","shareModal.linkCopied":"Link copied!","shareModal.title":"Share \"%s\"","word.common.documenti":"Documents","word.common.domande":"questions","word.common.maturita":"maturity","word.common.quiz":"Quiz","word.common.test":"test","word.common.universita":"University","word.common.veditutte":"View all","word.common.veditutti":"View all","word.common.video":"Video Courses"}},"trace":{"page_type":"document.view","navigation_language":"en"},"locale":"en","pointsRules":{"document_upload":20,"document_review":5,"university_review":5,"professor_review":5,"user_profile":10,"user_profile_b2b":10,"answer":5,"answer_best":10,"document_prime_promoted":100,"document_upload_ai_slave":5},"enabledModules":{"isPremiumEnabled":true,"isStoreEnabled":true,"isQuizEnabled":false,"isVideoEnabled":false,"isQuestionsEnabled":true,"isOnboardingB2bEnabled":true,"isProfessorsEnabled":true,"isProfessorReviewsEnabled":false,"isFastCheckoutEnabled":true,"isBlogEnabled":true,"isAiEnabled":true,"isLeanFreeToStoreEnabled":true},"showFooter":true,"showHeader":true,"translationsUserLang":null,"trackParams":true,"complexCondition":false,"_sentryTraceData":"6d756ca710684ff986519c088ea712f3-9edbabe8bb494195-0","_sentryBaggage":"sentry-environment=production,sentry-release=4.4.18,sentry-public_key=e22fc7b9af4a4f95b7a7c142e6fe1e5f,sentry-trace_id=6d756ca710684ff986519c088ea712f3,sentry-sample_rate=0.01,sentry-transaction=%2Fdocs,sentry-sampled=false","doc":{"id":12938070,"slug":"web-programming-and-technologies-2","userId":41288388,"title":"XML, XSLT, DOM, and AJAX: A Comprehensive Guide - Prof. Murch","url":"https://www.docsity.com/en/docs/web-programming-and-technologies-2/12938070/","description":"This document offers a detailed explanation of xml, including its features, dtd, and schema. it also covers xslt for xml transformations, the dom for xml manipulation, and ajax for asynchronous web applications. The guide provides examples and comparisons to enhance understanding.","lang":"en","downloads":0,"reviewsCount":0,"averageVotes":"0.0","isStore":true,"isPrime":false,"isPrimeEnabled":false,"isTop":false,"isActive":true,"isReviewed":true,"isSitePatatabrava":false,"isSiteEbah":false,"createdAt":{"timestamp":1745076856,"date":"2025-04-19","time":"17:34:16"},"year":2025,"favouritesCount":0,"points":70,"pointsIncrease":true,"lastPriceDown":null,"thumbnail":"https://static.docsity.com/media/avatar/documents/2025/04/19/043256edd74ae61db0f2211f699b791d.jpeg","canUseDocsityAi":true,"isUnlocked":false,"file":{"pages":17,"fileExt":"docx","source":"file","isUnconverted":false,"id":10483023,"firstPageUrl":"https://static.docsity.com/documents_first_pages/2025/04/19/e5b9c7e190b0ab6caeab480d88b783eb.png","policyDate":{"timestamp":1752062272,"date":"2025-07-09","time":"13:57:52"},"htmlCssKey":"documents_html/css/2025/04/19/043256edd74ae61db0f2211f699b791d/043256edd74ae61db0f2211f699b791d.css","htmlStructureKey":"documents_html/pages/2025/04/19/043256edd74ae61db0f2211f699b791d/043256edd74ae61db0f2211f699b791d.json","textContentKey":"documents_text_html/2025/04/19/043256edd74ae61db0f2211f699b791d.html"},"country":{"lang":"en"},"typology":{"id":5,"name":"Lecture notes","slug":"lecture-notes"},"category":{"id":5,"name":"Computer science","slug":"computer-science"},"subject":{"id":2306,"name":"Web Programming and Technologies","slug":"web-programming"},"university":{"id":126571,"lang":"en","slug":"st-joseph-university-1","name":"St. Joseph University","country":{"code":"in"}},"professor":{"id":1216900,"lang":"en","isActive":true,"isReviewed":true,"firstname":"Sita","lastname":"Murch","slug":"sita-murch"},"optimization":null,"user":{"id":41288388,"username":"r22syedamubarrahmpcs029","avatar":"https://static.docsity.com/media/avatar/users/default/avatar_01.svg","url":"https://www.docsity.com/en/users/profile/r22syedamubarrahmpcs029/home/","isActive":true,"country":{"code":"in"},"stat":{"receivedReviewsCount":0,"uploadedDocumentsCount":5,"receivedReviewsAverageVotes":0},"seller":{"canSell":true}},"extraInfo":null,"documentsTopics":[],"documentsQuestions":[]},"documentCssUrl":"https://static.docsity.com/documents_html/css/2025/04/19/043256edd74ae61db0f2211f699b791d/043256edd74ae61db0f2211f699b791d.css","documentBgPolicy":"?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9zdGF0aWMuZG9jc2l0eS5jb20vZG9jdW1lbnRzX2h0bWwvaW1hZ2VzLzIwMjUvMDQvMTkvMDQzMjU2ZWRkNzRhZTYxZGIwZjIyMTFmNjk5Yjc5MWQvKi5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3NTIwNjIyNzJ9fX1dfQ__\u0026Key-Pair-Id=K2FDQI4R6KV6U\u0026Signature=Pe6nEFNza0Ubsh9C4NIRmyJwQdz9RQllMb2igElRpdpj2mXKPwPWhkKXBkNIXt52g8U5JtArE3WsMUfgmN8l3n82zIHVEOm~8orBuXkzOYUC9TrEMrdeMPzZrVCqcLIYwh-qoTNO7MsqVx-kZpWNJHvBMt1QRscTn3GwVLGdpZ5erf2LJgqP9RM5CM5Z0dgtBs0ZlUhyriBx9CIaT-xEFQHiiv20WVFy9~rRAn~fzfK~szuUzQZkTXO0ajEHXRl4JUjoJacb218wRwGohdb8HVob~y1tYPj3YOSp6UYx3ReWvxkcFXIn~QHmkdY8VNoREoEfcQDkS9iSxh1TbcDqOw__","documentContent":[{"html":"\u003cdiv class=\"pc pc1 w0 h0\"\u003e\u003cimg class=\"bi x0 y0 w1 h1\" alt=\"bg1\" src=\"https://static.docsity.com/documents_html/images/2025/04/19/043256edd74ae61db0f2211f699b791d/bg1.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9zdGF0aWMuZG9jc2l0eS5jb20vZG9jdW1lbnRzX2h0bWwvaW1hZ2VzLzIwMjUvMDQvMTkvMDQzMjU2ZWRkNzRhZTYxZGIwZjIyMTFmNjk5Yjc5MWQvKi5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3NTIwNjIyNzJ9fX1dfQ__\u0026Key-Pair-Id=K2FDQI4R6KV6U\u0026Signature=Pe6nEFNza0Ubsh9C4NIRmyJwQdz9RQllMb2igElRpdpj2mXKPwPWhkKXBkNIXt52g8U5JtArE3WsMUfgmN8l3n82zIHVEOm~8orBuXkzOYUC9TrEMrdeMPzZrVCqcLIYwh-qoTNO7MsqVx-kZpWNJHvBMt1QRscTn3GwVLGdpZ5erf2LJgqP9RM5CM5Z0dgtBs0ZlUhyriBx9CIaT-xEFQHiiv20WVFy9~rRAn~fzfK~szuUzQZkTXO0ajEHXRl4JUjoJacb218wRwGohdb8HVob~y1tYPj3YOSp6UYx3ReWvxkcFXIn~QHmkdY8VNoREoEfcQDkS9iSxh1TbcDqOw__\" fetchpriority=\"high\" decoding=\"auto\"\u003e\u003cdiv class=\"c x0 y1 w2 h2\"\u003e\u003cdiv class=\"t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls2 ws2\"\u003eDOM (Document Object Model)\u003c/div\u003e\u003cdiv class=\"t m0 x1 h4 y3 ff2 fs1 fc0 sc0 ls2 ws2\"\u003eThe \u003cspan class=\"ff1 ws0\"\u003eDOM\u003c/span\u003e represents an XML/HTML document as a \u003cspan class=\"ff1\"\u003etree of nodes\u003c/span\u003e. Each node corresponds to \u003c/div\u003e\u003cdiv class=\"t m0 x1 h4 y4 ff2 fs1 fc0 sc0 ls2 ws2\"\u003eelements, attributes, or text, making it easy to \u003cspan class=\"ff1\"\u003enavigate and manipulate programmatically\u003c/span\u003e.\u003c/div\u003e\u003cdiv class=\"t m0 x1 h3 y5 ff1 fs0 fc0 sc0 ls2 ws2\"\u003eDOM Tree Structure\u003c/div\u003e\u003cdiv class=\"t m0 x1 h4 y6 ff2 fs1 fc0 sc0 ls2 ws2\"\u003eGiven XML:\u003c/div\u003e\u003cdiv class=\"t m0 x1 h4 y7 ff2 fs1 fc0 sc0 ls2\"\u003e\u0026lt;book\u0026gt;\u003c/div\u003e\u003cdiv class=\"t m0 x1 h4 y8 ff2 fs1 fc0 sc0 ls2 ws2\"\u003e \u0026lt;title\u0026gt;XML Developer's Guide\u0026lt;/title\u0026gt;\u003c/div\u003e\u003cdiv class=\"t m0 x1 h4 y9 ff2 fs1 fc0 sc0 ls2 ws2\"\u003e \u0026lt;author\u0026gt;Author Name\u0026lt;/author\u0026gt;\u003c/div\u003e\u003cdiv class=\"t m0 x1 h4 ya ff2 fs1 fc0 sc0 ls2 ws2\"\u003e \u0026lt;publisher\u0026gt;Publisher Name\u0026lt;/publisher\u0026gt;\u003c/div\u003e\u003cdiv class=\"t m0 x1 h4 yb ff2 fs1 fc0 sc0 ls2\"\u003e\u0026lt;/book\u0026gt;\u003c/div\u003e\u003cdiv class=\"t m0 x1 h4 yc ff2 fs1 fc0 sc0 ls2 ws2\"\u003eDOM Tree:\u003c/div\u003e\u003cdiv class=\"t m0 x2 h4 yd ff2 fs1 fc0 sc0 ls0\"\u003eโ—\u003cspan class=\"ff1 ls2 ws2\"\u003eDocument (Root Node)\u003c/span\u003e\u003c/div\u003e\u003cdiv class=\"t m0 x3 h5 ye ff2 fs1 fc0 sc0 ls2 ws2\"\u003eโ—‹\u003cspan class=\"_ _0\"\u003e \u003c/span\u003eElement: \u003cspan class=\"ff3 fc1\"\u003e\u0026lt;book\u0026gt;\u003c/span\u003e\u003c/div\u003e\u003cdiv class=\"t m0 x4 h5 yf ff2 fs1 fc0 sc0 ls2 ws2\"\u003eโ– \u003cspan class=\"_ _0\"\u003e \u003c/span\u003eElement: \u003cspan class=\"ff3 fc1 ws1\"\u003e\u0026lt;title\u0026gt;\u003c/span\u003e\u003cspan class=\"ff4\"\u003e \u003cspan class=\"_ _1\"\u003e \u003c/span\u003e Text: \u003cspan class=\"_ _2\"\u003e\u003c/span\u003e\u003cspan class=\"ff5 ls1\"\u003eโ†’\u003cspan class=\"ff6 ls2\"\u003eXML Developer's Guide\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv class=\"t m0 x4 h5 y10 ff2 fs1 fc0 sc0 ls2 ws2\"\u003eโ– \u003cspan class=\"_ _0\"\u003e \u003c/span\u003eElement: \u003cspan class=\"ff3 fc1 ws1\"\u003e\u0026lt;author\u0026gt;\u003c/span\u003e\u003cspan class=\"ff4\"\u003e \u003cspan class=\"_ _1\"\u003e \u003c/span\u003e Text: \u003cspan class=\"_ _2\"\u003e\u003c/span\u003e\u003cspan class=\"ff5 ls1\"\u003eโ†’\u003cspan class=\"ff6 ls2\"\u003eAuthor Name\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv class=\"t m0 x4 h5 y11 ff2 fs1 fc0 sc0 ls2 ws2\"\u003eโ– \u003cspan class=\"_ _0\"\u003e \u003c/span\u003eElement: \u003cspan class=\"ff3 fc1 ws1\"\u003e\u0026lt;publisher\u0026gt;\u003c/span\u003e\u003cspan class=\"ff4\"\u003e \u003cspan class=\"_ _1\"\u003e \u003c/span\u003e Text: \u003cspan class=\"_ _2\"\u003e\u003c/span\u003e\u003cspan class=\"ff5 ls1\"\u003eโ†’\u003cspan class=\"ff6 ls2\"\u003ePublisher Name\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv class=\"t m0 x1 h3 y12 ff1 fs0 fc0 sc0 ls2 ws2\"\u003eManipulating XML DOM with JavaScript\u003c/div\u003e\u003cdiv class=\"t m0 x1 h6 y13 ff1 fs1 fc0 sc0 ls2 ws2\"\u003e1. Load XML:\u003c/div\u003e\u003cdiv class=\"t m0 x1 h4 y14 ff2 fs1 fc0 sc0 ls2 ws2\"\u003elet xmlString = `...`; \u003c/div\u003e\u003cdiv class=\"t m0 x1 h4 y15 ff2 fs1 fc0 sc0 ls2 ws2\"\u003elet parser = new DOMParser(); \u003c/div\u003e\u003cdiv class=\"t m0 x1 h4 y16 ff2 fs1 fc0 sc0 ls2 ws2\"\u003elet xmlDoc = parser.parseFromString(xmlString, \"text/xml\");\u003c/div\u003e\u003cdiv class=\"t m0 x1 h6 y17 ff1 fs1 fc0 sc0 ls2 ws2\"\u003e2. Modify Elements:\u003c/div\u003e\u003cdiv class=\"t m0 x1 h4 y18 ff2 fs1 fc0 sc0 ls2 ws2\"\u003exmlDoc.getElementsByTagName(\"title\")[0].textContent = \"Advanced XML Guide\"; \u003c/div\u003e\u003cdiv class=\"t m0 x1 h4 y19 ff2 fs1 fc0 sc0 ls2 ws2\"\u003exmlDoc.getElementsByTagName(\"author\")[0].textContent = \"Updated Author Name\";\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","isFetched":true,"page":"documents_html/pages/2025/04/19/043256edd74ae61db0f2211f699b791d/f8f67b75f4007447003466334b861932.html","pageNumber":1,"type":"HTML"},{"html":"","isFetched":false,"page":"https://static.docsity.com/documents_html/pages/2025/04/19/043256edd74ae61db0f2211f699b791d/16f5b85ecc4417e47426674b8686420f.html?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9zdGF0aWMuZG9jc2l0eS5jb20vZG9jdW1lbnRzX2h0bWwvcGFnZXMvMjAyNS8wNC8xOS8wNDMyNTZlZGQ3NGFlNjFkYjBmMjIxMWY2OTliNzkxZC8xNmY1Yjg1ZWNjNDQxN2U0NzQyNjY3NGI4Njg2NDIwZi5odG1sIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzUyMDYyMjcyfX19XX0_\u0026Key-Pair-Id=K2FDQI4R6KV6U\u0026Signature=ppFJ1qcfWCNgX4pu-vbwZYksf0KohubiWQ6yKGFA72aYeJVklOVCuMIHK0YVY7Y8WKGkVMgK~jBIewbf3tZRSB5qqqJcJlYV~8-1dV49xHB~kbF2kmyNFA2ouei4~TMCimYs-HrMyYc9mvnwHp3~RwCtDRJk2th8hLyrqvcHEjrTxJOj1TW0PZxV2NcAP81T6oW4XQpcSzNioMmJSdeY5sZA3e9eETkAHRX9RfP1PoUaPT3uGo5XA5sepLxxusboDvnJv5coLWF6xQEHW9maFlevGkWaHUdI4fOx0RfKLyEoFIAaVd51eJIaElBSNhV0mFfMEWg8xIm6ViJvV4WIFw__","pageNumber":2,"type":"HTML"},{"html":"","isFetched":true,"page":"https://static.docsity.com/documents_html/blur/2025/04/19/043256edd74ae61db0f2211f699b791d/1afb225f252f6473d6a0e0aac0d49f17.webp","pageNumber":3,"type":"IMAGE"},{"html":"","isFetched":true,"page":"https://static.docsity.com/documents_html/blur/2025/04/19/043256edd74ae61db0f2211f699b791d/ca664409219f354bd1c866cd121ec292.webp","pageNumber":4,"type":"IMAGE"},{"html":"","isFetched":true,"page":"https://static.docsity.com/documents_html/blur/2025/04/19/043256edd74ae61db0f2211f699b791d/6f7e2e70fa63bc68f78bc904e2623996.webp","pageNumber":5,"type":"IMAGE"},{"html":"","isFetched":false,"page":"https://static.docsity.com/documents_html/pages/2025/04/19/043256edd74ae61db0f2211f699b791d/dc3707cf1f27744293ce362cad91809a.html?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9zdGF0aWMuZG9jc2l0eS5jb20vZG9jdW1lbnRzX2h0bWwvcGFnZXMvMjAyNS8wNC8xOS8wNDMyNTZlZGQ3NGFlNjFkYjBmMjIxMWY2OTliNzkxZC9kYzM3MDdjZjFmMjc3NDQyOTNjZTM2MmNhZDkxODA5YS5odG1sIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzUyMDYyMjcyfX19XX0_\u0026Key-Pair-Id=K2FDQI4R6KV6U\u0026Signature=LP1bSRtdyntevqL4En8gRbwNC67P~P2ryzSb~6SomgfXXEfNhARkTasXoTZri5rr2Hgl7oeqqcq7~LH1l-TwK8w0lcr2WTgViHns1t7uKIqIhSpDUJHqZAXEl0Flk1BnKWviuH9A7J0bOylfSHI9ouNJ85bZ7dCotmY2aid3Rb0EdblNtvK7aMX0HAZuXIyLRmhJgcFLFUv1psReSbfJKDFT~mbZUw-2BAfB1XC7vvoyVoULxiSwg3egrpqPNO57idUKfCuAKv6sz94hxkq0VOPYOTu0cq0hm7WGRhaNrbSch3i8Qj7K7cgkQq5BiO~QIxrgeI5APLk2uKbifF8syA__","pageNumber":6,"type":"HTML"},{"html":"","isFetched":false,"page":"https://static.docsity.com/documents_html/pages/2025/04/19/043256edd74ae61db0f2211f699b791d/31172fa650c4cb7452f242f192059675.html?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9zdGF0aWMuZG9jc2l0eS5jb20vZG9jdW1lbnRzX2h0bWwvcGFnZXMvMjAyNS8wNC8xOS8wNDMyNTZlZGQ3NGFlNjFkYjBmMjIxMWY2OTliNzkxZC8zMTE3MmZhNjUwYzRjYjc0NTJmMjQyZjE5MjA1OTY3NS5odG1sIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzUyMDYyMjcyfX19XX0_\u0026Key-Pair-Id=K2FDQI4R6KV6U\u0026Signature=tmxSy3xmFmsFE6vTuGuiGumagmanvByUKsBZyw4s70J7j-wL4qnsdz0VsAoWQlppIIh5Y8PSVinDIeWx6R6xH3wtxsGGh4oxY1TFE45bdYUHqNZYsSPruqgXSQTE90X2tWHeV-a3UTjQJCKzI1dg3wDs1H8BMjsRx2AdGqTpwhTuYlKarBrU69skAXmsFMiaVPAILy1g0pbE1Qc6El-e006C6rNPqmpjnzxFAG5M-uDHFka00P7aWmnE5OcC8EyDjZ~FAhqP1OcUCbpdFwStSfszjQ29DRs7bw3rOMOK2YB3WyJoVC4umaaQcOL4NRXV011eaInK8xV33Uyoe7nt4A__","pageNumber":7,"type":"HTML"},{"html":"","isFetched":true,"page":"https://static.docsity.com/documents_html/blur/2025/04/19/043256edd74ae61db0f2211f699b791d/302171c48734920db390b3022c8c13ed.webp","pageNumber":8,"type":"IMAGE"},{"html":"","isFetched":true,"page":"https://static.docsity.com/documents_html/blur/2025/04/19/043256edd74ae61db0f2211f699b791d/4c46f84dc86791dd4326f1487057cb23.webp","pageNumber":9,"type":"IMAGE"},{"html":"","isFetched":true,"page":"https://static.docsity.com/documents_html/blur/2025/04/19/043256edd74ae61db0f2211f699b791d/64ee7d9f39c3e23ee08e26cccc4d6b89.webp","pageNumber":10,"type":"IMAGE"},{"html":"","isFetched":false,"page":"https://static.docsity.com/documents_html/pages/2025/04/19/043256edd74ae61db0f2211f699b791d/4ee4ddd948992549acbeb815aef51378.html?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9zdGF0aWMuZG9jc2l0eS5jb20vZG9jdW1lbnRzX2h0bWwvcGFnZXMvMjAyNS8wNC8xOS8wNDMyNTZlZGQ3NGFlNjFkYjBmMjIxMWY2OTliNzkxZC80ZWU0ZGRkOTQ4OTkyNTQ5YWNiZWI4MTVhZWY1MTM3OC5odG1sIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzUyMDYyMjcyfX19XX0_\u0026Key-Pair-Id=K2FDQI4R6KV6U\u0026Signature=cCorUzOjzBAYb1SRQQ7wICS61wjVUrBnYFlWLdax6GQEoCFjNpJcR6Vd2HLTnsShighciahYRso2FL~B532gwmnIQvKJoYF4QB7vNAZCrA02ex6kx7fRXCaMU46Z80~by8lhxB~2yelDV6oKNNuPwwjdnL~TX-UHK7npZ2tv56zgiAwP60a0~tkeztxxNs6b6yEF8rnNikuizKteTxxb1bJ0c0S79I6vsfhe4jnIMRJ~IkM~cNHQyC8jE4WPtxJhmGfbiIbmzGcXWMZfj~QYLyAbu5HArPMBKFaxFghWZv9Rq-z5TS0DhukpZaCW9Mhhx6CwN~laxso6ctX5v-HIJw__","pageNumber":11,"type":"HTML"},{"html":"","isFetched":false,"page":"https://static.docsity.com/documents_html/pages/2025/04/19/043256edd74ae61db0f2211f699b791d/5e5f3b96bc6e2a676252c1d12c35da88.html?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9zdGF0aWMuZG9jc2l0eS5jb20vZG9jdW1lbnRzX2h0bWwvcGFnZXMvMjAyNS8wNC8xOS8wNDMyNTZlZGQ3NGFlNjFkYjBmMjIxMWY2OTliNzkxZC81ZTVmM2I5NmJjNmUyYTY3NjI1MmMxZDEyYzM1ZGE4OC5odG1sIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzUyMDYyMjcyfX19XX0_\u0026Key-Pair-Id=K2FDQI4R6KV6U\u0026Signature=cJa5NXAWwwpEDgYs17pYiUdafI2NKGteE7FrIIPhHI3bDCPFZpJmXp2Ap2msXQozu-lGiByrfdTMUZJabhFCRnmELNsePwuzUoTUAzTI-yZDsTksVQ1y1juE~SvUNm8rkSUTCVajv3WZ3HFtyOP24FsPVqxRhdkyXU3BRCjHi-84~lkKvJmdnxfz9WQze8CoYqcmwK8-8sllC2hC~dI53pjAeM7p0rHxBrMzzkK7shQjOVCsawRtN7BvOthK~G-Qly2eDQoWHu~R1KUaUFvBQzdQf~y3TzH1gZFjEi4ZAnAqq25ctazIOmHVNaTqsLaEI5gVfMYuhWXO-hJhjFLPUg__","pageNumber":12,"type":"HTML"},{"html":"","isFetched":true,"page":"https://static.docsity.com/documents_html/blur/2025/04/19/043256edd74ae61db0f2211f699b791d/1d9dc85a5e613be440f7beaf5df5400b.webp","pageNumber":13,"type":"IMAGE"},{"html":"","isFetched":true,"page":"https://static.docsity.com/documents_html/blur/2025/04/19/043256edd74ae61db0f2211f699b791d/d037db7809b1889b84a37bd1f00060d4.webp","pageNumber":14,"type":"IMAGE"},{"html":"","isFetched":true,"page":"https://static.docsity.com/documents_html/blur/2025/04/19/043256edd74ae61db0f2211f699b791d/e2a1c316559b28324331845ff9aad81a.webp","pageNumber":15,"type":"IMAGE"},{"html":"","isFetched":false,"page":"https://static.docsity.com/documents_html/pages/2025/04/19/043256edd74ae61db0f2211f699b791d/c54c5b3026e141de23ac16acda6342b2.html?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9zdGF0aWMuZG9jc2l0eS5jb20vZG9jdW1lbnRzX2h0bWwvcGFnZXMvMjAyNS8wNC8xOS8wNDMyNTZlZGQ3NGFlNjFkYjBmMjIxMWY2OTliNzkxZC9jNTRjNWIzMDI2ZTE0MWRlMjNhYzE2YWNkYTYzNDJiMi5odG1sIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzUyMDYyMjcyfX19XX0_\u0026Key-Pair-Id=K2FDQI4R6KV6U\u0026Signature=IOeNYfJZjVxTFoS14vRbBQ4YIF2yj5VhCsRZcvZRB7gZ7moZIcISxQDT-f~TNTZS1egx04kYJ4tgyeGFqJzH7ohiB2FLgixtBUiYDpAjt2skl4NSBgGYjUNtchaXjqZBXmGmiMjvZjDCyulbCh4iiXS4f7DgdwlkWhQ2Jyxk4dOqOUcAvjq8Q0czP6TqIaJn63T9m~YnCsU0vfBVsovxF-3hSi7ZL1ExK61xcVygH6tB2KftUBkOhTB3-zcf0N-ML~Pp32AfzSESnnxfYffgiPP4t1t4XuugS0eMWFPDkTWgZy8Uek9IKmH3wTLAgejXO04PBRFGEK8HhYDdONlmBA__","pageNumber":16,"type":"HTML"},{"html":"","isFetched":false,"page":"https://static.docsity.com/documents_html/pages/2025/04/19/043256edd74ae61db0f2211f699b791d/ed8e54a2cc4749c16c57a938a974e03e.html?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9zdGF0aWMuZG9jc2l0eS5jb20vZG9jdW1lbnRzX2h0bWwvcGFnZXMvMjAyNS8wNC8xOS8wNDMyNTZlZGQ3NGFlNjFkYjBmMjIxMWY2OTliNzkxZC9lZDhlNTRhMmNjNDc0OWMxNmM1N2E5MzhhOTc0ZTAzZS5odG1sIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzUyMDYyMjcyfX19XX0_\u0026Key-Pair-Id=K2FDQI4R6KV6U\u0026Signature=uvqDSH4B9FjXqYJx8ZV3ZArJQS-nv9ROx9gBa0CXjQetrTEao~ruzOa6QRaiCyxaasOiQmUA5XjLOEUAqe1K3w-~LE9HlzqDDYW0eC6H6I4-glDOeR57rP6xy1D~UeEY1nx14PMwrVC7OU9sbo2uCoyftQPr-B-rKBPaPNZXkGb9sy-gw4Vq-LvanQ8xUTpsmHPD5G3pYPR7WUxG1zX0Ov5TOUfaZT5BzGqajX3nhGj4tZ-TSBfdmgaYP4e9evy5SXbIg4ZkG9kh19WoG6eYwjhefAH5fuBSSJhhQ7E1VaMMsXTXi-s2pSoYKZ-u3t0~AsPtGfxA-Hri5HXT-dRHSg__","pageNumber":17,"type":"HTML"}],"documentStructure":{"maxWidth":1240,"maxHeight":1604.705882,"pages":[{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"},{"className":"pf w0 h0","width":"1240","height":"1604.705882"}],"sizes":[{"width":"1240","height":"1604.705882","numberOfPages":17}]},"documentText":"\u003ch2\u003eDOM (Document Object Model)\u003c/h2\u003e \u003cp\u003eThe \u003cstrong\u003eDOM\u003c/strong\u003e represents an XML/HTML document as a \u003cstrong\u003etree of nodes\u003c/strong\u003e. Each node corresponds to elements, attributes, or text, making it easy to \u003cstrong\u003enavigate and manipulate programmatically\u003c/strong\u003e.\u003c/p\u003e \u003ch2\u003eDOM Tree Structure\u003c/h2\u003e \u003cp\u003eGiven XML: \u003cbook\u003e \u003ctitle\u003eXML Developer's Guide\u003c/title\u003e \u003cauthor\u003eAuthor Name\u003c/author\u003e \u003cpublisher\u003ePublisher Name\u003c/publisher\u003e \u003c/book\u003e DOM Tree: โ— \u003cstrong\u003eDocument (Root Node)\u003c/strong\u003e โ—‹ Element: \u003cbook\u003e โ–  Element: \u003ctitle\u003e โ†’ Text: \u003cem\u003eXML Developer's Guide\u003c/em\u003e โ–  Element: \u003cauthor\u003e โ†’ Text: \u003cem\u003eAuthor Name\u003c/em\u003e โ–  Element: \u003cpublisher\u003e โ†’ Text: \u003cem\u003ePublisher Name\u003c/em\u003e\u003c/p\u003e \u003ch2\u003eManipulating XML DOM with JavaScript\u003c/h2\u003e \u003cp\u003e\u003cstrong\u003e1. Load XML:\u003c/strong\u003e let xmlString = \u003ccode\u003e...\u003c/code\u003e; let parser = new DOMParser(); let xmlDoc = parser.parseFromString(xmlString, \u0026quot;text/xml\u0026quot;); \u003cstrong\u003e2. Modify Elements:\u003c/strong\u003e xmlDoc.getElementsByTagName(\u0026quot;title\u0026quot;)[0].textContent = \u0026quot;Advanced XML Guide\u0026quot;; xmlDoc.getElementsByTagName(\u0026quot;author\u0026quot;)[0].textContent = \u0026quot;Updated Author Name\u0026quot;;\u003c/p\u003e \u003cp\u003e\u003cstrong\u003e3. Add New Element:\u003c/strong\u003e let year = xmlDoc.createElement(\u0026quot;year\u0026quot;); year.textContent = \u0026quot;2025\u0026quot;; xmlDoc.getElementsByTagName(\u0026quot;book\u0026quot;)[0].appendChild(year); \u003cstrong\u003e4. Serialize Updated XML:\u003c/strong\u003e let updatedXML = new XMLSerializer().serializeToString(xmlDoc); console.log(updatedXML);\u003c/p\u003e \u003ch2\u003eFinal Output:\u003c/h2\u003e \u003cp\u003e\u003cbook\u003e \u003ctitle\u003eAdvanced XML Guide\u003c/title\u003e \u003cauthor\u003eUpdated Author Name\u003c/author\u003e \u003cpublisher\u003ePublisher Name\u003c/publisher\u003e \u003cyear\u003e2025\u003c/year\u003e \u003c/book\u003e \u003cstrong\u003eOR\u003c/strong\u003e\u003c/p\u003e \u003ch2\u003eDocument Object Model (DOM) โ€“ 10 Marks Answer (Points)\u003c/h2\u003e \u003col\u003e \u003cli\u003eDefinition: The Document Object Model (DOM) is a programming interface for HTML and XML documents. It defines the logical structure of documents and the way a document can be accessed and manipulated.\u003c/li\u003e \u003cli\u003eTree Structure: The DOM represents the document as a hierarchical tree of nodes. Each node is an object representing a part of the document such as an element, text, attribute, or comment.\u003c/li\u003e \u003cli\u003eTypes of Nodes: โ—‹ Document Node: The root of the DOM tree. \u003cstrong\u003eโ—‹\u003c/strong\u003e Element Node: Represents tags like \u003cbook\u003e, \u003ctitle\u003e, etc.\u003c/li\u003e \u003c/ol\u003e \u003cp\u003e\u003cstrong\u003eโ—\u003c/strong\u003e Client-side scripting with JavaScript for interactive interfaces\u003c/p\u003e \u003ch2\u003eQ.What is the importance of extensible stylesheet language and xsl\u003c/h2\u003e \u003ch2\u003etransformation?\u003c/h2\u003e \u003cp\u003e\u003cstrong\u003eExtensible Stylesheet Language (XSL) and XSLT โ€“ 10 Marks Answer\u003c/strong\u003e\u003c/p\u003e \u003ch2\u003eExtensible Stylesheet Language (XSL) is used to define the presentation of XML\u003c/h2\u003e \u003ch2\u003edata. It allows you to transform and format XML documents for display in web\u003c/h2\u003e \u003ch2\u003epages or other formats like PDF or plain text. XSLT (XSL Transformations) is a\u003c/h2\u003e \u003ch2\u003epowerful part of XSL that helps transform XML data into a new structure or\u003c/h2\u003e \u003ch2\u003eformat.\u003c/h2\u003e \u003ch2\u003eImportance of XSLT:\u003c/h2\u003e \u003ch2\u003eโ— XSLT is much more powerful than CSS when working with XML.\u003c/h2\u003e \u003ch2\u003eโ— It allows you to add, remove, rearrange, and filter elements and attributes.\u003c/h2\u003e \u003ch2\u003eโ— You can use conditions, loops, and sorting within your transformation logic.\u003c/h2\u003e \u003ch2\u003eโ— XSLT works with XPath, a language used to navigate through elements in\u003c/h2\u003e \u003ch2\u003eXML.\u003c/h2\u003e \u003ch2\u003eโ— It is commonly used to convert XML data into HTML for display in\u003c/h2\u003e \u003ch2\u003ebrowsers.\u003c/h2\u003e \u003cp\u003eSimple Example of XSLT\u003c/p\u003e \u003ch2\u003eXML File (menu.xml):\u003c/h2\u003e \u003ch2\u003e\u003cmenu\u003e\u003c/h2\u003e \u003ch2\u003e\u003citem\u003e\u003c/h2\u003e \u003ch2\u003e\u003cname\u003eIdli\u003c/name\u003e\u003c/h2\u003e \u003ch2\u003e\u003cprice\u003e30\u003c/price\u003e\u003c/h2\u003e \u003ch2\u003e\u003c/item\u003e\u003c/h2\u003e \u003ch2\u003e\u003citem\u003e\u003c/h2\u003e \u003ch2\u003e\u003cname\u003eDosa\u003c/name\u003e\u003c/h2\u003e \u003ch2\u003e\u003cprice\u003e40\u003c/price\u003e\u003c/h2\u003e \u003ch2\u003e\u003c/item\u003e\u003c/h2\u003e \u003ch2\u003e\u003c/menu\u003e\u003c/h2\u003e \u003ch2\u003eXSLT File (menu.xsl):\u003c/h2\u003e \u003ch2\u003e\u003c?xml version=\"1.0\"?\u003e\u003c/h2\u003e \u003ch2\u003e\u0026lt;xsl:stylesheet version=\u0026quot;1.0\u0026quot;\u003c/h2\u003e \u003ch2\u003exmlns:xsl=\u0026quot;http://www.w3.org/1999/XSL/Transform\u0026quot;\u0026gt;\u003c/h2\u003e \u003ch2\u003e\u0026lt;xsl:template match=\u0026quot;/\u0026quot;\u0026gt;\u003c/h2\u003e \u003ch2\u003e\u003chtml\u003e\u003c/h2\u003e \u003ch2\u003e\u003cbody\u003e\u003c/h2\u003e \u003ch2\u003e\u003ch2\u003eMenu\u003c/h2\u003e\u003c/h2\u003e \u003ch2\u003e\u003cul\u003e\u003c/h2\u003e \u003ch2\u003e\u0026lt;xsl:for-each select=\u0026quot;menu/item\u0026quot;\u0026gt;\u003c/h2\u003e \u003ch2\u003e\u003cli\u003e\u003c/h2\u003e \u003ch2\u003e\u0026lt;xsl:value-of select=\u0026quot;name\u0026quot;/\u0026gt; - Rs.\u0026lt;xsl:value-of select=\u0026quot;price\u0026quot;/\u0026gt;\u003c/h2\u003e \u003ch2\u003e\u003c/li\u003e\u003c/h2\u003e \u003ch2\u003e\u0026lt;/xsl:for-each\u0026gt;\u003c/h2\u003e \u003ch2\u003e\u003c/ul\u003e\u003c/h2\u003e \u003ch2\u003e\u003c/body\u003e\u003c/h2\u003e \u003ch2\u003e\u003c/html\u003e\u003c/h2\u003e \u003ch2\u003e\u0026lt;/xsl:template\u0026gt;\u003c/h2\u003e \u003ch2\u003e\u0026lt;/xsl:stylesheet\u0026gt;\u003c/h2\u003e \u003ch2\u003eOutput (in browser):\u003c/h2\u003e \u003ch2\u003eMenu\u003c/h2\u003e \u003cul\u003e \u003cli\u003eIdli - Rs.\u003c/li\u003e \u003cli\u003eDosa - Rs.\u003c/li\u003e \u003c/ul\u003e \u003cp\u003e\u003crollno\u003e101\u003c/rollno\u003e \u003cdepartment\u003eComputer Science\u003c/department\u003e \u003c/student\u003e \u003cstrong\u003eStructure Explanation:\u003c/strong\u003e โ— \u003c?xml ...?\u003e: Declaration of XML version and encoding. โ— \u003cstudent\u003e: Root element. โ— \u003cname\u003e, \u003crollno\u003e, \u003cdepartment\u003e: Child elements. โ— Text values: Data inside elements. This structure forms a \u003cstrong\u003eDOM tree\u003c/strong\u003e , which can be easily accessed and manipulated.\u003c/p\u003e \u003cp\u003e\u003cstrong\u003e3. Explain XML DTD and XML Schema with examples. DTD (Document Type Definition)\u003c/strong\u003e defines the structure and rules of an XML document. It checks if the XML follows the correct format (validity). \u003cstrong\u003eExample of DTD:\u003c/strong\u003e\u003c/p\u003e \u003c!DOCTYPE student [ \u003c!ELEMENT student (name, rollno)\u003e \u003c!ELEMENT name (#PCDATA)\u003e \u003c!ELEMENT rollno (#PCDATA)\u003e ]\u003e **XML Schema (XSD)** is a more powerful alternative to DTD. It supports **data types** , **namespaces** , and **restrictions**. **Example of XML Schema:** \u003cxs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"\u003e \u003cxs:element name=\"student\"\u003e \u003cxs:complexType\u003e \u003cxs:sequence\u003e \u003cp\u003e\u0026lt;xs:element name=\u0026quot;name\u0026quot; type=\u0026quot;xs:string\u0026quot;/\u0026gt; \u0026lt;xs:element name=\u0026quot;rollno\u0026quot; type=\u0026quot;xs:int\u0026quot;/\u0026gt; \u0026lt;/xs:sequence\u0026gt; \u0026lt;/xs:complexType\u0026gt; \u0026lt;/xs:element\u0026gt; \u0026lt;/xs:schema\u0026gt; \u003cstrong\u003eComparison:\u003c/strong\u003e โ— DTD is simpler, not XML-based. โ— XSD is XML-based, supports data types and validation.\u003c/p\u003e \u003cp\u003e\u003cstrong\u003e4. Explain how formatting is done and the usage of XSL. XSL (Extensible Stylesheet Language)\u003c/strong\u003e is used to \u003cstrong\u003eformat and transform XML documents\u003c/strong\u003e. The most important part is \u003cstrong\u003eXSLT (XSL Transformations)\u003c/strong\u003e. \u003cstrong\u003eXSLT Features:\u003c/strong\u003e โ— Transform XML into HTML or other formats. โ— Add/remove elements. โ— Sort and filter data. โ— Use XPath to select parts of the document. \u003cstrong\u003eExample:\u003c/strong\u003e\u003c/p\u003e \u003c!-- XML --\u003e \u003cbook\u003e\u003ctitle\u003eXML Guide\u003c/title\u003e\u003c/book\u003e \u003c!-- XSLT --\u003e \u003cxsl:template match=\"/\"\u003e \u003chtml\u003e\u003cbody\u003e \u003ch1\u003e\u003cxsl:value-of select=\"book/title\"/\u003e\u003c/h1\u003e \u003cp\u003eโ— Combines multiple technologies: \u003cstrong\u003eJavaScript, XML/JSON, DOM, and XMLHttpRequest\u003c/strong\u003e. \u003cstrong\u003eFeatures:\u003c/strong\u003e โ— \u003cstrong\u003eAsynchronous Communication\u003c/strong\u003e : No need to reload the page. โ— \u003cstrong\u003eImproved User Experience\u003c/strong\u003e : Smoother and faster. โ— \u003cstrong\u003eUses XMLHttpRequest\u003c/strong\u003e object to communicate with the server. โ— \u003cstrong\u003eLightweight and Dynamic\u003c/strong\u003e : Only loads necessary content. โ— Can work with \u003cstrong\u003eXML or JSON\u003c/strong\u003e for data.\u003c/p\u003e \u003cp\u003e\u003cstrong\u003e7. Compare Traditional Web Applications vs AJAX Applications\u003c/strong\u003e \u003cstrong\u003eFeature Traditional Web Apps AJAX Web Apps\u003c/strong\u003e Page Reload Full page reload required No page reload User Experience Slower, less responsive Fast and interactive Communication Synchronous Asynchronous Data Transfer Large HTML content Only required data (JSON/XML) Performance Slower due to full page load Faster, reduces server load Technology Used HTML, CSS, Server scripting AJAX = JS + XML/JSON + XMLHttpRequest \u003cstrong\u003e8. Give an AJAX example using XMLHttpRequest object. HTML + JavaScript Example:\u003c/strong\u003e\u003c/p\u003e \u003c!DOCTYPE html\u003e \u003cp\u003e\u003chtml\u003e\u003c/p\u003e \u003cbody\u003e \u003cbutton onclick=\"loadData()\"\u003eGet Data\u003c/button\u003e \u003cdiv id=\"output\"\u003e\u003c/div\u003e \u003cscript\u003e function loadData() { let xhr = new XMLHttpRequest(); xhr.open(\"GET\", \"data.txt\", true); xhr.onreadystatechange = function() { if (xhr.readyState == 4 \u0026\u0026 xhr.status == 200) { document.getElementById(\"output\").innerHTML = xhr.responseText; } }; xhr.send(); } \u003c/script\u003e \u003c/body\u003e \u003c/html\u003e **Explanation:** โ— XMLHttpRequest sends a GET request to data.txt. โ— When data is received, it updates the output div. โ— No page reload occurs. \u003cp\u003e\u0026lt;h:td\u0026gt;Apples\u0026lt;/h:td\u0026gt; \u0026lt;h:td\u0026gt;Bananas\u0026lt;/h:td\u0026gt; \u0026lt;/h:tr\u0026gt; \u0026lt;/h:table\u0026gt; \u0026lt;f:table\u0026gt; \u0026lt;f:name\u0026gt;African Coffee Table\u0026lt;/f:name\u0026gt; \u0026lt;f:width\u0026gt;80\u0026lt;/f:width\u0026gt; \u0026lt;f:height\u0026gt;120\u0026lt;/f:height\u0026gt; \u0026lt;/f:table\u0026gt; \u003c/root\u003e In this example: \u003cstrong\u003eโ—\u003c/strong\u003e Elements prefixed with h belong to the HTML namespace. \u003cstrong\u003eโ—\u003c/strong\u003e Elements prefixed with f belong to the furniture namespace. This approach ensures that elements from different vocabularies can coexist without naming conflicts. citeturn0search\u003c/p\u003e \u003cp\u003e\u003cstrong\u003e2. Discuss about Document Type Definition (DTD)\u003c/strong\u003e A Document Type Definition (DTD) defines the structure and legal elements and attributes of an XML document. It acts as a blueprint, ensuring that XML documents adhere to a predefined format. Purpose: โ— Validates the structure of XML documents. โ— Defines allowed elements, attributes, and their relationships. Types of DTD: 1. Internal DTD: Defined within the XML document. 2. External DTD: Defined in an external file and referenced within the XML document. Example of Internal DTD:\u003c/p\u003e \u003c!DOCTYPE note [ \u003c!ELEMENT note (to, from, heading, body)\u003e \u003c!ELEMENT to (#PCDATA)\u003e \u003c!ELEMENT from (#PCDATA)\u003e \u003c!ELEMENT heading (#PCDATA)\u003e \u003c!ELEMENT body (#PCDATA)\u003e ]\u003e \u003cnote\u003e \u003cto\u003eTove\u003c/to\u003e \u003cfrom\u003eJani\u003c/from\u003e \u003cheading\u003eReminder\u003c/heading\u003e \u003cbody\u003eDon't forget me this weekend!\u003c/body\u003e \u003c/note\u003e In this example: **โ—** The \u003c!DOCTYPE\u003e declaration contains the DTD. **โ—** \u003c!ELEMENT\u003e defines the elements and their content models. Limitations: โ— DTDs do not support data types; all data is treated as text. โ— They lack namespace support. citeturn0search \u003cp\u003e\u003cstrong\u003e3. Explain XSL Transformations (XSLT)\u003c/strong\u003e XSLT (Extensible Stylesheet Language Transformations) is a language used to transform XML documents into other formats like HTML, plain text, or other XML structures. Purpose: โ— Separates data (XML) from its presentation. โ— Enables the transformation of XML data into a human-readable format or another structured format.\u003c/p\u003e \u003cp\u003eWhen applied, this XSLT transforms the XML into an HTML document displaying the note's details. citeturn0search\u003c/p\u003e \u003cp\u003e\u003cstrong\u003e4. What is Document Object Model (DOM)?\u003c/strong\u003e The Document Object Model (DOM) is a programming interface that represents XML or HTML documents as a tree structure, allowing programs to read, manipulate, and modify the document's content and structure dynamically. Structure: โ— Nodes: Every part of the document (elements, attributes, text) is a node in the DOM tree. โ— Hierarchy: Nodes are arranged in a hierarchical tree structure, with a single root node. Types of Nodes: 1. Element Nodes: Represent tags in the document. 2. Attribute Nodes: Represent attributes of elements. 3. Text Nodes: Represent the text content within elements. Example: Consider the following XML: \u003cbook\u003e \u003ctitle\u003eXML Guide\u003c/title\u003e \u003cauthor\u003eJohn Doe\u003c/author\u003e \u003c/book\u003e The DOM representation would be: โ— Document \u003cstrong\u003eโ—‹\u003c/strong\u003e Element: \u003cbook\u003e \u003cstrong\u003eโ– \u003c/strong\u003e Element: \u003ctitle\u003e โ–  Text: \u0026quot;XML Guide\u0026quot;\u003c/p\u003e \u003cp\u003e\u003cstrong\u003eโ– \u003c/strong\u003e Element: \u003cauthor\u003e โ–  Text: \u0026quot;John Doe\u0026quot; Usage: โ— Navigation: Traverse the document structure. โ— Modification: Add, remove, or change elements and attributes. โ— Dynamic Content: Update content dynamically in web applications. citeturn0search\u003c/p\u003e \u003cp\u003e\u003cstrong\u003e5. What is an AJAX Application?\u003c/strong\u003e AJAX (Asynchronous JavaScript and XML) is a web development technique that enables web applications to send and receive data asynchronously from a server without requiring a full page reload. Key Features: โ— Asynchronous Data Fetching: Allows data to be fetched in the background without interfering with the display and behavior of the existing page. โ— Partial Page Updates: Only parts of a webpage are updated, leading to a more dynamic and responsive user experience. โ— Reduced Server Load: Minimizes the amount of data transferred between the client and server. Example Use Cases: โ— Auto-suggest: Search boxes\u003c/p\u003e ","relatedDocs":[{"id":8742649,"title":"XSLT and XML Attributes and Elements: A Comprehensive Guide","url":"https://www.docsity.com/en/docs/xpath-quick-reference/8742649/","isStore":false,"isPrime":false,"isTop":false,"averageVotes":"0.0","reviewsCount":0},{"id":11929962,"title":"AJAX Questions with Correct Answers 2024/2025","url":"https://www.docsity.com/en/docs/ajax-questions-with-correct-answers-2024-2025/11929962/","isStore":true,"isPrime":false,"isTop":false,"averageVotes":"0.0","reviewsCount":0},{"id":6332630,"title":"SGML, XML and their Differences: A Comprehensive Guide - Prof. Vijay Gehlot","url":"https://www.docsity.com/en/docs/standard-generalized-markup-language-lecture-slides-csc-9010/6332630/","isStore":false,"isPrime":false,"isTop":false,"averageVotes":"0.0","reviewsCount":0},{"id":11770119,"title":"XML Fundamentals: Concepts and Practices","url":"https://www.docsity.com/en/docs/xml-fundamentals-concepts-and-practices/11770119/","isStore":true,"isPrime":false,"isTop":false,"averageVotes":"0.0","reviewsCount":0},{"id":12324886,"title":"XML Test Questions \u0026 Answers: Mastering eXtensible Markup Language","url":"https://www.docsity.com/en/docs/xml-test-questions-answers-mastering-extensible-markup-language/12324886/","isStore":true,"isPrime":false,"isTop":false,"averageVotes":"0.0","reviewsCount":0},{"id":9068814,"title":"Parsing XML Files using DOM Parser in Java: A Step-by-Step Guide","url":"https://www.docsity.com/en/docs/java-java-java-java-java-java-2/9068814/","isStore":false,"isPrime":false,"isTop":false,"averageVotes":"0.0","reviewsCount":0},{"id":13147906,"title":"Web 290 Exam Q\u0026A: Master AJAX, JSON \u0026 JavaScript","url":"https://www.docsity.com/en/docs/web-290-exam-questions-with-verified-answers-latest-updated/13147906/","isStore":true,"isPrime":false,"isTop":false,"averageVotes":"0.0","reviewsCount":0},{"id":11242652,"title":"Comprehensive Guide to Web Development Concepts - Prof. Patil","url":"https://www.docsity.com/en/docs/skill-based-web-lab-viva-questions/11242652/","isStore":false,"isPrime":false,"isTop":false,"averageVotes":"0.0","reviewsCount":0},{"id":12357682,"title":"CIS2750 Exam Questions and Answers: A Comprehensive Guide to Web Development Concepts","url":"https://www.docsity.com/en/docs/cis2750-exam-questions-and-answers-a-comprehensive-guide-to-web-development-concepts/12357682/","isStore":true,"isPrime":false,"isTop":false,"averageVotes":"0.0","reviewsCount":0},{"id":6367707,"title":"JavaScript: CS 110 Fall 2007 Course Materials - Prof. David W. Wolber","url":"https://www.docsity.com/en/docs/assignment-for-javascript-introduction-to-computer-science-i-cs-110/6367707/","isStore":false,"isPrime":false,"isTop":false,"averageVotes":"0.0","reviewsCount":0},{"id":6202981,"title":"CMSC 433 Final Review: Dates, Projects, and Exam Information","url":"https://www.docsity.com/en/docs/final-exam-notes-programming-language-technology-and-paradigms-cmsc-433/6202981/","isStore":false,"isPrime":false,"isTop":false,"averageVotes":"0.0","reviewsCount":0},{"id":12388411,"title":"Domestic Violence: A Comprehensive Guide for Healthcare Professionals","url":"https://www.docsity.com/en/docs/domestic-violence-test-questions-and-answers/12388411/","isStore":true,"isPrime":false,"isTop":false,"averageVotes":"0.0","reviewsCount":0}],"suggestedDocs":[],"gbData":{"attributes":{},"features":{"summary-completion-model":{"defaultValue":"Anthropic;claude-3-haiku-20240307"},"gemini_vs_claude_maps":{"defaultValue":"Anthropic;claude-3-haiku-20240307"},"chat-completion-model":{"defaultValue":"anthropic;claude-3-haiku-20240307","rules":[{"coverage":1,"hashAttribute":"user_doc_id","seed":"55dd49b4-f94c-452d-a282-23643830d942","hashVersion":2,"variations":["anthropic;claude-3-haiku-20240307","google;gemini-2.0-flash"],"weights":[0.5,0.5],"key":"chat-gemini-vs-claude","phase":"2","meta":[{"key":"0"},{"key":"1"}]}]}}}},"__N_SSP":true},"page":"/docs","query":{"slug":"web-programming-and-technologies-2","id":"12938070"},"buildId":"eKbdKBy2y5h-b8PckRcyj","assetPrefix":"https://assets.docsity.com/mf/docs/4.4.18","isFallback":false,"isExperimentalCompile":false,"gssp":true,"appGip":true,"locale":"en","locales":["default","it","en","es","pt","fr","pl","ru","sr","de"],"defaultLocale":"default","scriptLoader":[]}</script></body></html>