freecoding.school100% FREE · NO SIGNUP
Endpoint BayISSUE #11 of 45

xml · the legacy lingua franca

RestaVSThe 401 Bandit
Resta saysXML is the verbose legacy data format — still seen in SOAP, RSS, and enterprise systems.

XML wraps data in nested tags (<user><name>drew</name></user>). It's more verbose than JSON but supports schemas, namespaces, and attributes — strengths that suited document-heavy and enterprise contexts. You'll meet it in SOAP services, RSS/Atom feeds, and older APIs. New APIs almost always choose JSON.

Power-ups you unlock

The 401 Bandit attacks — common mistakes

Boss battleRepresent the same user object in XML and note how much more verbose it is.

Example code

<!doctype html><html><head><meta charset="utf-8"></head>
<body style="background:#06040d;color:#e6e0ff;font-family:monospace;padding:20px"><pre>&lt;user id="42"&gt;
  &lt;name&gt;drew&lt;/name&gt;
  &lt;role&gt;admin&lt;/role&gt;
&lt;/user&gt;</pre></body></html>
▶ Open the interactive comic issue
‹ Json · The Lingua FrancaForm Data · Multipart · Urlencoded ›