link: Web Data Handling and Formats

XML (eXtensible Markup Language)

Overview

XML is a flexible, structured markup language used in web development and for storing and transporting data. Developed in the late 1990s, it was designed to be both human-readable and machine-readable. XML is a W3C-recommended standard and is a fundamental technology in a wide range of data applications.

Key Features of XML

How XML Works

XML Syntax

XML Syntax

Link to original

JSON vs XML

Comparison

FeatureJSONXML
VerbosityLightweight and less verboseMore verbose, leading to potentially larger files
ReadabilityHigh readability and ease of useReadable but can be cumbersome due to verbosity
ComplexityLower complexity, easier to parseHigher complexity, robust parsing required
Data StructuresIdeal for array and key-value pairsBetter for complex hierarchical data structures
Metadata SupportLimited metadata capabilitiesExtensive metadata support through attributes
ScalabilityHighly scalable for web and mobile applicationsScalable but better suited for enterprise systems
SecurityBasic security suitable for web dataAdvanced security features like support for XML Signature
InteroperabilityHigh with web technologiesHigh across various software and systems
Use CasesAPIs, web configurations, client-server appsComplex document-based applications, enterprise data exchange
Encoding SupportUnicode support directlyExtensive support for various encodings
Link to original

References

What Is XML? | Postman Blog