Edit on GitHub

XML

XML powers Symphony's data engine and is used to structure content for templating.

Overview

XML is the markup language used by Symphony to expose content to the templating layer, where it is transformed by XSLT. Symphony’s native use of XML makes it trivially easy to work with feeds, APIs, and other XML data sets, and encourages clean, well-structured coding.

A Symphony page's XML source is the basis for the transformations carried out by its template (and any included utilities).

Usage

A page's XML source is comprised of fragments provided by attached data sources and events. Adding data to a page's XML source requires creating a data source to fetch it and attaching that data source to the page.

Details

The root element of a page's XML source is always <data>. Any fragments provided by data sources or events are nested within this root element.

For more details on XML itself, see: http://www.w3schools.com/xml/xml_whatis.asp

The Big Picture

XML is a widely-adopted open standard recommended by the W3C.