XML Syntax Standards & RulesWell-formed XML rules, declaration standards, and special constructs.
XML Prolog/Declaration defining character encoding and XML version.
<?xml version="1.0" encoding="UTF-8"?>
Character Data block containing raw text not parsed as markup.
<![CDATA[<script>]]>
Element without child nodes closed with a slash before the angle bracket.
<img src="logo.png" />
Predefined entity references for reserved markup characters.
<, >, &, ", '
Single root element, strictly nested tags, quoted attribute values.
<root><child/></root>