XML Structure

XML Structure

XML Rules

  • All attribute values must be quoted, e.g. <body bgcolor="#FFFFFF">
  • Elements can only be nested, e.g. <div><ol><li></li></ol></div>
  • Every element must have closure, e.g. <br />
  • Case-sensitive applies to XML, XHTML, XSL, XPath
  • Certain characters must be encoded to be represented as data in XML, e.g.  <, >, ", ' and &

Sitecore XML Structure

  • Item is the element used to represent every item in the Content Tree and can contain any number of versions
  • Version is the element used to represent a particular version of an item and contains the fields element
  • Fields is the element used to group the individual field elements associated with a particular item version and can contain any number of field elements
  • Field is the element that is used to represent the data of the item and contains a content element
  • Content  is the element that contains the field contents