Data Engine
The Data Engine API creates an XML document from database data. The DataProcessor
class is used to generate an XML document from a data template. This template is an XML file that specifies the input parameters, the SQL query to retrieve data from the database, and the data structure of the XML document to be generated. One advantage of the Data Engine API over the XML SQL Utility (which also generates an XML document from a database) is that it lets you generate a hierarchy of elements in an XML document. The following table shows some of the commonly used elements and attributes in the data template with the required elements/attributes indicated with "(required)":
Element |
Description |
Attributes |
---|---|---|
dataTemplate (required) |
Root element. |
name (required) version (required) |
parameters |
Specifies input parameters to the SQL query. Consists of |
name (required) dataType—values may be "character", "date" or "number... |