Characteristics of XML


Document elements have their own semantics.

Document structure conveys semantics.

<root>
  <first>
    <Subelement attr="xyz" attr2="qwr"/>
  </first>
  <second>
    <AnotherSubelement>
      ABC<Something attr="plk"/>
    </AnotherSubelement>
  </second>
  <third/>
</root>
  • Correctly nested
  • Matching tags
  • Null elements
  • Attributes with quotes
  • Well formed
  • Validated