XML interview question · Most asked

What is XML and where is it still used today?

Create a free account to save this page, take notes and track your progress. Sign in

Summary

XML is a text format for structured data and documents where you define your own tags, nested into a tree, with strict syntax rules and optional schemas. It's still central to Office files (.docx, .xlsx), SVG, EPUB, RSS/Atom, sitemaps, SOAP services, finance (ISO 20022), healthcare (HL7 CDA), e-invoicing (UBL), publishing, and build/configuration files such as Maven and Android.

Longer Answer

JSON replaced XML for most web APIs, but XML remains strong where documents with markup, long-lived standards and schema-validated contracts matter. A good answer acknowledges both.

Key Points

  • Self-describing tree of elements and attributes.
  • Strict well-formedness; optional schemas.
  • Dominant in documents and enterprise standards.
  • JSON won most web APIs.

Deep dive: XML Tutorial: XML Introduction

Explanation

What interviewers look for

Concrete current uses, not just 'it's old'.

More most-asked XML questions

← All XML questions

Was this page helpful?