The structure of the XML files can be built up hierarchically. Each element may contain sub elements or attributes. For example, a QPS article contains different components, the text could be formatted with paragraph and character styles or type styles.