<Map> (XML Mapping Properties)

This element contains all of the properties related to the XML map, and the behaviors expected during data refresh operations.

example:
<Map ID="1" Name="Root_Map" RootElement="Root" SchemaID="Schema1"
  ShowImportExportValidationErrors="false" AutoFit="true" Append="false" 
  PreserveSortAFLayout="true" PreserveFormat="true">
  <DataBinding ConnectionID="1" FileBinding="true" DataBindingLoadMode="1"/>
</Map>

Parent Elements

<MapInfo>3.16.3)

Child Elements

Subclause

<DataBinding> (XML Mapping)

§3.16.1

Attributes

Description

<Append> (Append Data to Table)

Specifies whether XML data should overwrite or be appended to the end of the table or range of mapped cells when data is refreshed.

The possible values for this attribute are defined by the XML Schema boolean datatype.

<AutoFit> (AutoFit Table on Refresh)

Specifies whether columns should be resized to fit the XML data after a data refresh operation.

The possible values for this attribute are defined by the XML Schema boolean datatype.

<ID> (XML Mapping ID)

Specifies the ID of the XML map.

The possible values for this attribute are defined by the XML Schema unsignedInt datatype.

<Name> (XML Mapping Name)

Specifies the name of the XML map.

The possible values for this attribute are defined by the XML Schema string datatype.

<PreserveFormat> (Preserve Cell Formatting)

Specifies whether cell number formatting in the sheet should be preserved during data refresh operations, or whether the number formatting defined by the XML data type should be used.

The possible values for this attribute are defined by the XML Schema boolean datatype.

<PreserveSortAFLayout> (Preserve AutoFilter State)

Specifies whether to keep the filter state of the Table or cell range intact during a data refresh.

The possible values for this attribute are defined by the XML Schema boolean datatype.

<RootElement> (Root Element Name)

Specifies the names of the root XML element.

The possible values for this attribute are defined by the XML Schema string datatype.

<SchemaID> (Schema Name)

Specifies the unique name of the <schema> used for the mapping.

The possible values for this attribute are defined by the XML Schema string datatype.

<ShowImportExportValidationErrors> (Show Validation Errors)

Specifies whether validation errors should be displayed during data refresh or data export.

The possible values for this attribute are defined by the XML Schema boolean datatype.

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_Map">
	<sequence>
	<element name="DataBinding" type="CT_DataBinding" minOccurs="0" maxOccurs="1"/>
	</sequence>
	<attribute name="ID" type="xsd:unsignedInt" use="required"/>
	<attribute name="Name" type="xsd:string" use="required"/>
	<attribute name="RootElement" type="xsd:string" use="required"/>
	<attribute name="SchemaID" type="xsd:string" use="required"/>
	<attribute name="ShowImportExportValidationErrors" type="xsd:boolean" use="required"/>
	<attribute name="AutoFit" type="xsd:boolean" use="required"/>
	<attribute name="Append" type="xsd:boolean" use="required"/>
	<attribute name="PreserveSortAFLayout" type="xsd:boolean" use="required"/>
	<attribute name="PreserveFormat" type="xsd:boolean" use="required"/>
</complexType>