|
SQL Language in 602SQL | Obsah | 602SQL Development and Management Client |
602SQL is equipped with an extension supporting the XML format - this functionality is subject to activation after purchasing the license.
The XML support in some form is a feature found in all modern database systems. To store XML into a database and following access to data, two basic ways are used:
Unlike other text formats, the XML format may capture data no matter how the data is structured. Therefore, it is very useful for storing data linked with a relational database.
Data relations are usually presented differently in the XML file than in the relational database. Elements are nested in other elements in XML, while record relations in a relational database are made according to identical key values. Therefore, transformations are done during data transfer.
Advantages of transferring data in the XML format:
In order to fulfill these demands, a simple import and export between a database table and a file is not sufficient. It is required to first create a map that describes the transformation of the data structure. That map is called DAD.
The transfer description in DAD allows the following:
The relationship between a database data structure and the XML file follows these two principles: relation of N records from another table corresponds with nesting N occurrences of an element containing data from the record. The repeated data may be suppressed to a higher level. The first principle is used more frequently in analytic DADs and the second in synthetic DADs.
Methods of working with XML data described here can be also utilized for external data sources that are linked via the ODBC interface. The main limitation of access via ODBC is a fact that actual execution of XML transfers from/to ODBC must be done only from the client interface (Development environment, PHP XML API or CDK), while transfers from/to the 602SQL server are possible not only from the client side, but also from the SQL server side using the SQL language. 602SQL server itself has not implemented the ODBC interface. Further limitations are described here.
UTF-8 and UTF-16 encoding is used for XML. Conversion from/to this encoding are not supported on Windows 95 and Windows NT 3.5, therefore the XML extension cannot be used on these operating systems. This is only supported on Windows 4.0/2000/XP/2003.
The XML extension is implemented in the 602xmlXY.dll library (where XY is the version). This library uses the xerces-c_2_*.dll library distributed under the Apache license.
List of topics:
SQL Language in 602SQL | Obsah | 602SQL Development and Management Client |