Content class definition configuration
Configuring a content class to be exportable is a two steps procedure:
Step 1: Knowing if a class is exportable or not
Go to the «Setup» tab in your Administration Interface, and select «Classes» in the left menu. Here you may choose any content class you want and go to its definition.
For example, for the «folder» content class you should get the following screenshot :

Below the «Object count» line you should see the following title «Available for XML export». If the value of this attribute is «No» then you will not be able to export any content of this content class. For each attribute you can also choose whether it is exportable or not. In the above screenshot we see that the «Name» attribute is not available for XML export.
Note that if a content class is not defined as available for XML export then none of its attribute will be available for XML export.
Step 2: Making a class available for XML export
Because not all content classes or all their attributes need to be exportable, users themselves can decide which classes they want to be able to export. The only thing users have to do is to edit the content class by clicking on the «Edit» button available at the bottom of the content class definition. You should get something like this:

Click on the «Class available for XML export» check-box first and then, for each attribute you want to export, click on the «Available for XML export» check-box. Once you have defined the content class and all the attributes you want to export, just click on «OK» or «Apply» to save your changes.
List of available datatypes
Below you will find the list of Exponential datatypes that are currently available for XML rendering in eZ XML Export. By clicking on the datatype name you will be redirected to the datatype reference page. By clicking on the Exponential internal name you will be redirected to the XML schema definition of that datatype.
| Datatype name | Exponential internal name | Handeled in eZXMLexport |
|---|---|---|
| Authors | ezauthor | yes |
| Checkbox | ezcheckbox | yes |
| Country | ezcountry | yes |
| Date | ezdate | yes |
| Date and time | ezdatetime | yes |
| ezemail | yes | |
| Enum | ezenum | yes |
| File | ezfile | yes |
| Float | ezfloat | yes |
| Identifier | ezidentifier | yes |
| Image | ezimage | yes |
| Ini setting | ezinisetting | no |
| Integer | ezinteger | yes |
| ISBN | ezisbn | yes |
| Keywords | ezkeywords | yes |
| Matrix | ezmatrix | yes |
| Media | ezmedia | yes |
| Multi-option | ezmultioption | no |
| Mutli-option2 | ezmutlioption2 | no |
| Multi-price | ezmultiprice | no |
| Object relation | ezobjectrelation | yes |
| Object relations | ezobjectrelationlist | yes |
| Option | ezoption | no |
| Package | ezpackage | no |
| Price | ezprice | no |
| Product | ezproduct | no |
| Range | ezrange | no |
| Selection | ezselection | no |
| Subtree | ezsubtree | no |
| Text Block | eztext | yes |
| Text Line | ezstring | yes |
| Time | eztime | yes |
| URL | ezurl | yes |
| User Account | ezuser | no |
| XML Block | ezxmltext | yes |
Restrictions
Restrictions on a few datatypes like ISBN, URL or email are defined globally in the XML Schema because it is not possible to define restrictions directly in complex types. The export also adds a few meta data for each exported content object:
- creation date
- modification date
- language code in ISO format
- published version number
- creator identifier
<xs:attributeGroup name="objectinfo">
<xs:attribute name="creation_date" type="xs:dateTime" use="required"/>
<xs:attribute name="modification_date" type="xs:dateTime" use="required"/>
<xs:attribute name="publication_date" type="xs:dateTime" use="required"/>
<xs:attribute name="lang" type="xs:string" use="optional"/>
<xs:attribute name="version" type="xs:integer" use="required"/>
<xs:attribute name="creator_id" type="xs:integer" use="required"/>
</xs:attributeGroup> In this section
- XML schema definition eZAuthor <xs:complexType name="ezauthor"> <xs:sequence> <xs:element name="id" type="xs:integer"/> <xs:element name="name"...
- XML schema definition eZCheckbox <xs:complexType name="ezcheckbox"> <xs:simpleContent> <xs:extension base="xs:boolean"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZCountry <xs:complexType name:"ezcountry"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZDate <xs:complexType name="ezdate"> <xs:simpleContent> <xs:extension base="xs:time"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZDateTime <xs:complexType name="ezdatetime"> <xs:simpleContent> <xs:extension base="xs:time"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZEmail <xs:complexType name="ezemail"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZEnum <xs:complexType name="ezenum"> <xs:sequence> <xs:element name="key" type="xs:string"/> <xs:element name="value" type=...
- XML schema definition eZFile <xs:complexType name="ezfile"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZFloat <xs:complexType name="ezfloat"> <xs:simpleContent> <xs:extension base="xs:float"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZIdentifier <xs:complexType name:"ezidentifier"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZImage <xs:complexType name="ezimage"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZisbn <xs:complexType name="ezisbn"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZKeyword <xs:complexType name="ezkeyword"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZMatrix <xs:complexType name="ezmatrix"> <xs:sequence> <xs:element name="key" type="xs:string"/> <xs:element name="value" type="xs:s...
- XML schema definition eZMedia <xs:complexType name="ezmedia"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZObjectrelation <xs:complexType name="ezobjectrelation"> <xs:sequence> <xs:element name="object_id" type="xs:integer" minOccurs="0" maxOccurs="unbounded"...
- XML schema definition eZObjectrelationlist <xs:complexType name="ezobjectrelationlist"> <xs:sequence> <xs:element name="object_id" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence...
- XML schema definition eZSelection <xs:complexType name="ezselection"> <xs:sequence> <xs:element name="key" type="xs:string"/> <xs:element name="value" type="xs:s...
- XML schema definition eZText <xs:complexType name="eztext"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZString <xs:complexType name="ezstring"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZTime <xs:complexType name="eztime"> <xs:simpleContent> <xs:extension base="xs:time"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZURL <xs:complexType name="ezurl"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType>
- XML schema definition eZXMLText <xs:complexType name="ezxmltext"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType>
Contributors
- Ester Heylen Maintainer
- Geir Arne Waaler Updated Maintainer
Comments
Add a comment