XML HttpRequest

To request data from a server, a built-in XMLHttpRequest object is present in all modern browsers. The XMLHttpRequest Object: To request data from a web server, the XMLHttpRequest object can be used which is much like a dream for a developer. The reasons are: The XMLHttpRequest object can update a web page without reloading the … Read more

Categories XML

Displaying XML

Though supported in all major browsers, the raw XML files are, however, not displayed as HTML pages. Viewing XML Files: – Sapna Tom Meeting Monday at 11 AM! When displayed in a browser, an XML document may appear with color-coded elements, and with a plus (+) or minus sign (-) to the left of the … Read more

Categories XML

XML Namespaces

To avoid element name conflicts, a method is facilitated by XML Namespaces. Name Conflicts: Defined by the developer, the element names in XML certainly results in a conflict while mixing XML documents from different XML applications. Example 1: Name Department Explanation: In the above example, the XML carries the HTML table information. Example 2: Side … Read more

Categories XML

XML Attributes

Similar to HTML, XML elements can have attributes that are designed to contain data related to a specific element. XML Attributes Must be Quoted: Being always quoted, the attribute values can have either single or double-quotes. For example: or like this: If the double quotes are already present in the attribute value itself then we … Read more

Categories XML

XML Elements

XML Elements are present in every XML document. What is an XML Element? Everything from the element’s start tag to the element’s end tag in an XML document is an XML element. Example: Tom Text, attributes, other elements, or a mix of the above is included in an element. Example: ABC Unknown 2020 100.00 XQuery … Read more

Categories XML

XML Syntax

The XML syntax has very simple, logical, easy to learn, and easy to use rules. XML Syntax Rules: XML Documents Must Have a Root Element: The root element is the parent of all other elements and it must be present in every XML document. Syntax: ….. Example: Sapna Tom Meeting At 11 AM on Monday … Read more

Categories XML

XML Tree

A tree structure is formed by an XML document. It starts at “the root” and branches to “the leaves”. Example: Books.xml: ABC Unknown 2020 100.00 XQuery Book Author 1 Author 2 Author 3 Author 4 2004 350.00 Output: XML Tree: XML Tree Structure: Formed as element trees, these XML documents as an XML tree start … Read more

Categories XML

XML How to Use

Along with its use in many aspects of web development, XML is also used to separate data from presentation. Separating Data from Presentation: The information about how to be displayed is not carried by XML. With a full separation between data and presentation, the XML data can be used in many different presentation scenarios. XML … Read more

Categories XML