Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Example Output of a Template Fragment Script

You can create a Template Fragment to return data from a Model Script into a document report.  The Script must return one or more rows of data in the following XML format:

 

<EADATA>

 <Dataset_0>

   <Data>

     <Row>

       <DateGen>09/01/2013</DateGen>

       <TimeGen>9:31 </TimeGen>

       <Author>John</Author>

       <EA_REPOS>C:\Users\John\Documents\Sample Model.eap</EA_REPOS>

     </Row>

   </Data>

 </Dataset_0>

</EADATA>

 

 

Each of these data fields in the XML (such as DateGen, TimeGen) refers to fields that can be included in the Custom section of a Template Fragment.

Notes

·If the text is a formatted Note, add  formatted="1" to the field row; for example: <Author formatted="1"><i>John</i></Author>
 

Learn more