This driver accepts the following options:
Table 55-1. Options for this driver
Option | Type | Description | Default Value |
---|---|---|---|
fieldAttribute | string | Which attribute of the XML source should be used as column field name (only used if the XML source has attributes). | null |
fields | array | Which data fields to fetch from the datasource. An empty array means: all fields. Form: array(field1, field2, ...) | array() |
generate_columns | bool | Generate Structures_DataGrid_Column objects with labels. See the 'labels' option. | false |
labelAttribute | string | Which attribute of the XML source should be used as column label (only used if 'generate_columns' is true and the XML source has attributes). | null |
labels | array | Data field to column label mapping. Only used when 'generate_columns' is true. Form: array(field => label, ...) | array() |
xpath | string | XPath to a subset of the XML data. | '' |