# Component: Data

## Element: [Data](https://developers.google.com/public-data/docs/schema/dspl11#id98) / file

| Namespace | http://schemas.google.com/dspl/2010 |
| Diagram | ![Diagram](https://developers.google.com/static/public-data/images/schema/dspl.html35.jpeg) |
| Type | extension of xs:string |
| Properties | | content: | complex | |---|---| |
| Attributes | | QName | Type | Fixed | Default | Use | Annotation | | [encoding](https://developers.google.com/public-data/docs/schema/dspl11#id101) | xs:string |   | utf-8 | optional | The encoding of data in the file. | | [format](https://developers.google.com/public-data/docs/schema/dspl11#id100) | xs:string |   | csv | optional | The format of the data in the file. Implementation note: CSV is the only format currently supported by the Google importer. | |---|---|---|---|---|---| |
| Source | ``` <xs:element name="file"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="format" type="xs:string" use="optional" default="csv"> <xs:annotation> <xs:documentation>The format of the data in the file. Implementation note: CSV is the only format currently supported by the Google importer.</xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute name="encoding" type="xs:string" use="optional" default="utf-8"> <xs:annotation> <xs:documentation>The encoding of data in the file.</xs:documentation> </xs:annotation> </xs:attribute> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> ``` |
|---|---|

## Complex Type: Data

| Namespace | http://schemas.google.com/dspl/2010 |
| Annotations | Data for a table. |
| Diagram | ![Diagram](https://developers.google.com/static/public-data/images/schema/dspl.html16.jpeg) |
| Used by | | Element | [Table/data](https://developers.google.com/public-data/docs/schema/dspl10#id97) | |---|---| |
| Model | [file](https://developers.google.com/public-data/docs/schema/dspl11#id99) |
| Children | [file](https://developers.google.com/public-data/docs/schema/dspl11#id99) |
| Source | ``` <xs:complexType name="Data"> <xs:annotation> <xs:documentation>Data for a table.</xs:documentation> </xs:annotation> <xs:choice> <xs:element name="file"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="format" type="xs:string" use="optional" default="csv"> <xs:annotation> <xs:documentation>The format of the data in the file. Implementation note: CSV is the only format currently supported by the Google importer.</xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute name="encoding" type="xs:string" use="optional" default="utf-8"> <xs:annotation> <xs:documentation>The encoding of data in the file.</xs:documentation> </xs:annotation> </xs:attribute> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> ``` |
|---|---|

## Attribute: [Data](https://developers.google.com/public-data/docs/schema/dspl11#id98) / [file](https://developers.google.com/public-data/docs/schema/dspl11#id99) / @format

| Namespace | No namespace |
| Annotations | The format of the data in the file. Implementation note: CSV is the only format currently supported by the Google importer. |
| Type | xs:string |
| Properties | | use: | optional | | default: | csv | |---|---| |
| Used by | | Element | [Data/file](https://developers.google.com/public-data/docs/schema/dspl11#id99) | |---|---| |
| Source | ``` <xs:attribute name="format" type="xs:string" use="optional" default="csv"> <xs:annotation> <xs:documentation>The format of the data in the file. Implementation note: CSV is the only format currently supported by the Google importer.</xs:documentation> </xs:annotation> </xs:attribute> ``` |
|---|---|

## Attribute: [Data](https://developers.google.com/public-data/docs/schema/dspl11#id98) / [file](https://developers.google.com/public-data/docs/schema/dspl11#id99) / @encoding

| Namespace | No namespace |
| Annotations | The encoding of data in the file. |
| Type | xs:string |
| Properties | | use: | optional | | default: | utf-8 | |---|---| |
| Used by | | Element | [Data/file](https://developers.google.com/public-data/docs/schema/dspl11#id99) | |---|---| |
| Source | ``` <xs:attribute name="encoding" type="xs:string" use="optional" default="utf-8"> <xs:annotation> <xs:documentation>The encoding of data in the file.</xs:documentation> </xs:annotation> </xs:attribute> ``` |
|---|---|

Created using the
[oXygen XML Editor](http://www.oxygenxml.com).