XML
A text format that stores structured data as nested elements marked with tags in angle brackets, readable by both people and programs.
In more detail
XML stands for Extensible Markup Language and is a standard of the World Wide Web Consortium. Documents, configuration files and many data exchange formats use it, including SOAP messages. It looks like HTML but has strict rules and no fixed tag names. Programs that parse XML from untrusted sources must disable external entity processing, or an attacker can make the parser read local files or contact other servers.
Examples
In the APIs course: In the course, a caller that asks for XML from the JSON-only service gets 406 Not Acceptable rather than a format it cannot parse.<property name="MSIP_Label_..._Name"><vt:lpwstr>Confidential</vt:lpwstr></property>In the browser: XML stands for Extensible Markup Language. An XML parser stops at the first syntax mistake, which the course contrasts with the forgiving HTML parser. SVG graphics are written in XML.Maven's pom.xml is XML.<?xml version="1.0" encoding="UTF-8"?>Windows events export as XML with a namespace; Sysmon's data fields sit under EventData.Related terms
- SOAP — An XML-based messaging protocol in which every message is wrapped in an envelope and services are described formally, usually with WSDL.
- JSON — A simple text format for structured data made of keys, values, lists and nested objects.
- 406 Not Acceptable — The HTTP status meaning the server cannot produce any format the Accept header asked for.
- SAML — Security Assertion Markup Language: an older single sign-on standard in which the identity provider sends a signed XML assertion about the user.
- DOCX — The standard file format for Microsoft Word documents, which is really a zip archive containing XML files for the text, styles and properties.
- custom document properties — User- or tool-defined name and value pairs stored inside an Office document, kept in a part called docProps/custom.xml.
- metadata — Data that describes other data, such as a file name, a creation time or a package version.
- Android — Google's mobile operating system, whose apps read design values such as colours and dimensions from XML resource files.
- Style Dictionary — An open-source build tool that reads design token files and generates code for each platform, such as CSS, TypeScript, Swift and Android resources.
- HTML — The markup language that describes the structure and meaning of a web page with elements such as <button>, <input> and <h2>.
- project file — The XML file, such as Hello.csproj, that tells the build which SDK, target framework, packages and settings a project uses.
- MSBuild — The build engine behind .NET that reads project files and runs the steps that restore packages, compile code and produce output.
- HTML error recovery — The HTML parser's standard rules for repairing broken markup, such as unclosed tags, instead of refusing to show the page.
- SVG — Scalable Vector Graphics, an XML-based image format that describes shapes with coordinates so it stays sharp at any size.
- XPath — A query language for picking parts of an XML or HTML document by their position in the tree.
- POM — Maven's project file, pom.xml, which declares a project's coordinates, properties, dependencies and plugins.
- Windows event log — The logging system built into Windows, which stores structured events in channels such as Security, System and Sysmon.
- ElementTree — Python's built-in library for reading and writing XML documents as a tree of elements.
Taught in
- Headers And Content Negotiation — Modern API Architecture: REST, GraphQL & gRPC
- When Each Wins: REST, GraphQL, gRPC And SOAP — Modern API Architecture: REST, GraphQL & gRPC
- CodeBuild: The Build That Passed With Failing Tests — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- The Full Mock And Your Review Plan — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Scan Reports: Triage, Gates And Cleanup — Certified Kubernetes Security Specialist (CKS) Exam Prep
- The Intern Who Could Delete Backups: Identity And Access — CompTIA Cloud+ (CV0-004) Exam Prep
- Two Reminders, One Booking: Integration And DevOps Tools — CompTIA Cloud+ (CV0-004) Exam Prep
- DevOps Sprint: Tax At A Hundred Percent — CompTIA Cloud+ (CV0-004) Exam Prep
- Zero-Trust Network Access & IdP Federation — Cloud Security & DevSecOps Engineering
- Data Classification Schemes & Sensitivity Labeling — Cybersecurity Fundamentals, GRC & Cryptography
- Token Transformation: Style Dictionary & Multi-Platform Outputs — Design Systems & Component Engineering
- What is .NET? Runtime vs SDK, and LTS vs STS — Modern .NET Core, C# & Enterprise Microservices
- Solutions, Projects, and Target Frameworks — Modern .NET Core, C# & Enterprise Microservices
- HTML Parsing, Tokenization And The Document Object Model (DOM) — Frontend Architecture & Web Platform
- The Fetch API: Streaming Responses, HTTP Caching And Keepalive — Frontend Architecture & Web Platform
- End-to-End Testing with Playwright: Multi-Tier Suites — Production Full-Stack Engineering
- The Toolchain: Maven — Modern Java: Virtual Threads & High-Throughput Services
- Windows Event Logs, Sysmon & Linux Auditd Telemetry — Security Operations & Threat Hunting (SOC)
- Detecting Persistence: Tasks, Registry & Services — Security Operations & Threat Hunting (SOC)
- Identity: Joiners, Federation And MFA — CompTIA Security+ (SY0-801) Exam Prep
- Virtual Machines With libvirt: XML, virsh And Autostart — Linux Foundation Certified System Administrator (LFCS) Exam Prep
References
- W3C: Extensible Markup Language (XML) 1.0
- W3C: Extensible Markup Language
- NIST glossary: extensible markup language
- Android: more resource types
- MDN: XML introduction
Certification courses
- AWS DevOps Engineer Professional course and practice exam: DOP-C02
- CKS course and practice exam: Certified Kubernetes Security Specialist
- CompTIA Cloud+ course and practice exam: CV0-004
- CompTIA Security+ course and practice exam: SY0-801
- LFCS course and practice exam: Linux Foundation Certified System Administrator