Misplaced Pages

pureXML

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

pureXML is the native XML storage feature in the IBM Db2 data server. pureXML provides query languages, storage technologies, indexing technologies, and other features to support XML data. The word pure in pureXML was chosen to indicate that Db2 natively stores and natively processes XML data in its inherent hierarchical structure, as opposed to treating XML data as plain text or converting it into a relational format.

Technical information

Db2 includes two distinct storage mechanisms: one for efficiently managing traditional SQL data types, and another for managing XML data. The underlying storage mechanism is transparent to users and applications; they simply use SQL (including SQL with XML extensions or SQL/XML) or XQuery to work with the data.

XML data is stored in columns of Db2 tables that have the XML data type. XML data is stored in a parsed format that reflects the hierarchical nature of the original XML data. As such, pureXML uses trees and nodes as its model for storing and processing XML data. If you instruct Db2 to validate XML data against an XML schema prior to storage, Db2 annotates all nodes in the XML hierarchy with information about the schema types; otherwise, it will annotate the nodes with default type information. Upon storage, Db2 preserves the internal structure of XML data, converting its tag names and other information into integer values. Doing so helps conserve disk space and also improves the performance of queries that use navigational expressions. However, users aren't aware of this internal representation. Finally, Db2 automatically splits XML nodes across multiple database pages, as needed.

XML schemas specify which XML elements are valid, in what order these elements should appear in XML data, which XML data types are associated with each element, and so on. pureXML allows you to validate the cells in a column of XML data against no schema, one schema, or multiple schemas. pureXML also provides tools to support evolving XML schemas.

IBM has enhanced its programming language interfaces to support access to its XML data. These enhancements span Java (JDBC), C (embedded SQL and call-level interface), COBOL (embedded SQL), PHP, and Microsoft's .NET Framework (through the DB2.NET provider).

History

pureXML was first included in the DB2 9 for Linux, Unix, and Microsoft Windows release, which was codenamed Viper, in June 2006. It was available on DB2 9 for z/OS in March 2007. In October 2007, IBM released DB2 9.5 with improved XML data transaction performance and improved storage savings. In June 2009, IBM released DB2 9.7 with XML supported for database-partitioned, range-partitioned, and multi-dimensionally clustered tables as well as compression of XML data and indices.

Competition

See also: XML database

Db2 is a hybrid data server—it offers data management for traditional relational data, as well as providing native XML data management. Other vendors that offer data management for both relational data and native XML storage include Oracle with its 11g product and Microsoft with its SQL Server product.

pureXML also competes with native XML databases like BaseX, eXist, MarkLogic or Sedna.

Books

IBM International Technical Support Organization (ITSO) has published the following books, which are available in print or as free e-books:

The following books are also available for purchase:

Education and training

The following pureXML classroom and online courses are available from IBM Education:

See also

References

  1. "IBM Developer". IBM.
  2. "IBM News room - 2006-06-08 IBM Transforms Database Market With Introduction of DB2 - United States". Archived from the original on 2012-10-11.
  3. "IBM News room - 2007-03-06 IBM Unveils DB2 Viper for the Mainframe - United States". Archived from the original on 2012-10-11.
  4. "IBM News room - 2007-10-15 IBM Extends Data Server Technology Lead With Introduction of DB2 "Viper 2" - United States". Archived from the original on 2012-10-11.
  5. "IBM News room - 2009-04-22 IBM Database Software Improves Operational Efficiency and Cuts Storage Costs by Up to 75% - United States". Archived from the original on 2012-11-21.

External links

Online communities

Online communities allow pureXML users to network with fellow professionals.

IBM Db2 product family
Platforms
Editions
  • Express/Express-C
  • Workgroup Server
  • Enterprise Server
Related products
Tools
  • Data Studio
  • Data Studio Administrator
  • Data Studio Developer
  • InfoSphere Data Architect
  • Toad (software)
Features
Community
Other IBM database products
Cloudscape
IMS
Informix
U2
Categories: