2.401 .version[enum]

This attribute of the document object sets the desired version of the XML toolkit.

When the attribute is changed, the stored DOM tree is deleted and all existing doccursors are invalidated (.mapped = false).

Setting the attribute does not automatically force the XML toolkit to be loaded. When the attribute is queried, it returns the value that it has been set to. The attribute .real_version can be used to check at runtime, whether the desired XML toolkit can be loaded.

The index for this attribute is the toolkit enumeration.

Currently toolkit_windows is the only index value supported, because only Microsoft Windows allows to set the runtime version of the MSXML control. To indicate the version number, the major version has to be multiplied with 100 and the minor version has to be added if applicable. When 0 is given as version number, the system’s default version of the MSXML control is loaded.

Definition

  • Data type

    integer

  • Access

    get, set

  • changed event

    no

Example

MSXML 5.0 shall be used so that the XSD document type is supported.

this.version[toolkit_windows] := 500;

Afterward it is checked if MSXML 5.0 could be loaded.

if (this.real_version[toolkit_windows] = 500) then
  // OK
endif

Note

The versions of the MSXML control differ in the features they support. Only some of the main differences can be listed here. Comprehensive information can be found in the documentation of the MSXML control provided by Microsoft.

MSXML 6.0

MSXML 5.0 for Microsoft Office applications

MSXML 4.0

MSXML 3.0

See also

Attribute .real_version[enum]