Characteristics of XML


Document structure conveys semantics.

Document elements have their own 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