1. Home
  2. Docs
  3. Web Technology I
  4. eXtensible Markup Languag...
  5. Introduction


Here is the Introduction of XML:

Screenshot 2024 02 12 182342
Screenshot 2024 02 12 182434

XML documents must contain one root element that is the parent of all other elements:



    <details>Personal Information</details>
    <name>John Doe</name>
      <street>Main Street</street>

The syntax for writing comments in XML is similar to that of HTML:

  < !-- This is a comment -- >
    <! -- Comments can be added anywhere in the XML document -- >
    <subchild>This is some content</subchild>

The structure of an XML file consists of elements organized in a hierarchical manner. Each XML file must have a single root element that encloses all other elements.

• Elements can contain text, attributes, and other elements, forming a tree-like structure.

<?xml version="1.0" encoding="UTF-8"?>
    <book ISBN="978-3-16-148410-0">
        <title>XML Basics</title>
        <author>John Doe</author>
    <book ISBN="978-3-16-148411-7">
        <title>Advanced XML</title>
        <author>Jane Smith</author>
image 1

How can we help?

Leave a Reply

Your email address will not be published. Required fields are marked *