Composition is the generation of a set of XML documents from relational data in an XML collection. You can compose XML documents using stored procedures. To use these stored procedures, you must create a DAD file, which specifies the mapping between the XML document and the DB2 table structure. The stored procedures use the DAD file to compose the XML document. See Planning for XML collections to learn how to create a DAD file.