XML Output

Top Previous Topic Next Topic  Print this topic

Element <das:output> contains the structural information of the XML that will be aggregated.

 

XML Output is described by the <das:element>, <das:element-sequence> and <das:attribute> XML tags.

 

The following example describes an XML output which contains all employees in a corporation.  The root element, named employees, contains a sequence of elements named employee with attribute name. Each employee tag contains a sequence of elements named history-record with the attribute name, which describes the history of the employee in the corporation.

 

 

<das:output>

       <das:element name="employees" namespace-prefix="ns" namespace-uri="http://mycorporation.com">

               <das:element-sequence data-source="ds1" name="employee" namespace-prefix="ns" namespace-uri="http://mycorporation.com">

                       <das:attribute name="id" value="fld1"/>

                               <das:element-sequence data-source="ds2" name="history-record" namespace-prefix="ns" namespace-uri="http://mycorporation.com">

                                       <das:attribute name="dept" value="fld6"/>                                        

                               </das:element-sequence>

               </das:element-sequence>

       </das:element>

</das:output>