XML
Structured data format: data is wrapped in tags, similar to HTML. Used for exchange, storage, and configuration.
Example
<urlset>
<url><loc>https://site.ru/</loc></url>
</urlset>
In AI and Web
- sitemap.xml — site map;
- RSS — feeds;
- configs and exchange formats.
Difference from JSON
XML is more verbose and supports schemas; JSON is more compact and convenient for APIs. In modern APIs, JSON has almost replaced XML.