Skip to content

FreeSource-Code/Xml-language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XML Language

Overview

XML (eXtensible Markup Language) is used to store and transport data. It is both human-readable and machine-readable. XML is commonly used in Android layouts, web services, configuration files, and data exchange.


Features

  • Self-descriptive tags
  • Platform and language independent
  • Hierarchical (tree-based) structure
  • Supports Unicode
  • Custom user-defined tags
  • Used widely for configuration and data transfer

Basic Syntax Example

<?xml version="1.0" encoding="UTF-8"?>
<note>
    <to>John</to>
    <from>Alice</from>
    <heading>Reminder</heading>
    <message>Don't forget our meeting tomorrow!</message>
</note>

Syntax Rules

  • Root element is required: ...
  • Tags are case-sensitive: John
  • All tags must be closed: value
  • Attributes must use quotes:
  • Escape special characters: & → &, < → <, > → >, " → ", ' → '
  • XML vs HTML Feature XML HTML Purpose Data storage/transport Display content Tags User-defined Predefined Case-sensitive Yes No Error handling Strict Lenient Structure Hierarchical Document-based

    About

    No description, website, or topics provided.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published