Jump to content

PureXML

From Alfawiki
Adapted from the English Wikipedia article PureXML, available under CC BY-SA 4.0Updated 9 August 2025
pureXML
IndustryDatabase management software
FoundedJune 2006; 20 years ago (2006-06)
ProductsNative XML data storage and management for IBM Db2
ParentIBM

pureXML represents IBM Db2's built-in capability for native XML data storage, incorporating dedicated indexing, storage methods, and query languages tailored to XML. The designation pure highlights Db2's approach of preserving XML in its original hierarchical form rather than converting it into plain text or relational tables.

Technical information

Db2 segregates the storage of conventional SQL data types from that of XML data, yet users access both through SQL (with XML-specific extensions or SQL/XML) or XQuery without needing to understand the underlying storage distinctions.

XML content is stored in columns defined by the XML data type and maintained in a parsed, tree-structured format composed of nodes. When XML data is validated against a schema prior to storage, Db2 enriches nodes with schema-derived type information; if not validated, default typing applies. To enhance disk utilization and query speed, tag names and associated metadata are internally mapped to integers. The system also automatically manages how nodes are allocated across database pages.

pureXML allows XML columns to be validated against zero, one, or multiple schemas and provides features for managing schema evolution.

IBM has upgraded its programming interfaces—including Java (JDBC), C, COBOL, PHP, and Microsoft's .NET Framework)—enabling streamlined XML data interaction via the DB2.NET provider.

History

The introduction of pureXML occurred with DB2 9 for Linux, Unix, and Microsoft Windows (code-named Viper) in June 2006, followed by availability on DB2 9 for z/OS in March 2007. Later versions enhanced both XML transaction throughput and storage optimization: DB2 9.5 (October 2007) improved these aspects further, while DB2 9.7 (June 2009) added support for database-partitioned, range-partitioned, and multi-dimensional clustered tables featuring compression for XML data and indexes.

Competition

Db2 functions as a hybrid database system managing traditional relational data alongside native XML content. Comparable solutions offering such dual support include Oracle with its 11g and Microsoft's SQL Server.

In addition, pureXML competes with specialized native XML databases like BaseX, eXist, MarkLogic, and Sedna.

Books

IBM’s International Technical Support Organization (ITSO) publishes several resources available both as printed editions and complimentary e-books:

Further publications for purchase include:

Education and training

IBM Education offers training programs designed to develop expertise with pureXML:

Related topics

External resources

Community networks

Users of pureXML have opportunities to connect through: