See Also
Terrasoft CRM 3.0 SDK > Libraries > TSObjectLibrary > Interfaces > IXMLStorage
ContentsIndex
Interface IXMLStorage

XML data management object in Terrasoft CRM 3.0

Class Hierarchy
IXMLStorage
IDL
[ odl, uuid(C3EFE045-615B-4792-8F00-37B9428435B1), version(1.0), helpstring("Dispatch interface for Storage Object"), dual, oleautomation ]
interface IXMLStorage : IDispatch;
Description

Object is the XML data storage. 

 

It is meant for the XML data management in Terrasoft CRM 3.0 system to load and save XML using various sources (a stream, a file, a table field).

Storage format of Date/Time values

Date/time value is stored in the XML document as a string generated by the rule:

[YYYY] + "-" + [MM] + "-" + [DD] + " " + [HH] + ":" + [MN]

where:

  • [YYYY] - four-digit number defining year of date.
  • [MM] - number in the interval from 1 up to 12, defining month of date.
  • [DD] - number in the interval from 1 up to 31, defining day of date.
  • [HH] - number in the interval from 1 up to 31, defining hours.
  • [MN] - number in the interval from 1 up to 31, defining minutes.
Storage format of Date values

Date value is stored in the XML document as a string generated by the rule:

[YYYY] + "-" + [MM] + "-" + [DD]

where:

  • [YYYY] - four-digit number defining year of date.
  • [MM] - number in the interval from 1 up to 12, defining month of date.
  • [DD] - number in the interval from 1 up to 31, defining day of date.
Storage format of Time values

Time value is stored in the XML document as a string generated by the rule: 

[HH] + ":" + [MN] 

where:

  • [HH] - number in the interval from 1 up to 31, defining hours.
  • [MN] - number in the interval from 1 up to 31, defining minutes.
Storage format of Boolean values

Value of boolean type is stored in the XML document as a string with value "True" or "False".

Storage format of Variant values

For correct storage of some variant value the additional attribute is created. The attribute name is formed by the rule:

[Attribute name] + "_ValueType"

where:

  • [Attribute name] - Name of the basic attribute, which variant value is set for.

Value set for the additional attribute equals the code of type of the data contained in the basic attribute.

Storage format of Float values

Float value is stored in the XML document as a string generated by the rule:

[Integer part] + "." + [Fractional part]
Storage format of Integer values

Integer value is stored in the XML document as a string, which contains an integer in the decimal notation.

Storage format of Binary values

Binary value is stored in the XML document as a string, which contains representation of every byte in the hexadecimal notation.

Example of the IXMLStorage interface.
See Also
Copyright (ñ) Terrasoft 2002-2007.