Cheatsheet: XML
Basic syntax
XML Declaration: The first line of an XML document should always be an XML declaration that specifies the version of XML and the encoding used
Elements: XML elements are the building blocks of an XML document and can contain text, attributes, and other elements. Elements start with a start tag and end with an end tag.
Attributes: Attributes are used to provide additional information about an element and are placed within the start tag.
Namespaces: Namespaces are used to distinguish between elements with the same name but from different sources.
Comments: XML comments are used to add notes to the document and are ignored by XML parsers
CDATA: CDATA sections are used to include character data in an XML document that would otherwise be treated as markup.
Entities: XML entities are used to represent special characters, such as < for <, > for >, & for &, etc.