Hundreds of other document formats, including HTML (for rendering web pages) and SVG (for rendering scalable graphics), take inspiration from the XML syntax.
XML documents consist of content surrounded by markup, generally in the form of tags.
<and end with
>. They can be opening tags
<...>or closing tags
</...>. Some tags are self-closing
=as the separator.
XML can describe nested, and complex data structures since elements can contain other elements in the content portion. XML shines where predefined schemas, data types, and namespaces allow for a very standardized form of data transmission.
One of the main shortcomings of XML is that it is exceedingly verbose and very redundant. JSON and YAML are much simpler alternatives.
<?xml version="1.0" encoding="UTF-8"?> <root> <org> <login>deepsourcelabs</login> <name>DeepSource</name> </org> <repo activelyMaintained="true"> <name>good-first-issue</name> <stats> <stat type="stars">400</stat> <stat type="forks">130</stat> </stats> </repo> </root>