database solutions for storing and retrieving xml documents

15
Database Solutions for Storing and Retrieving XML Documents

Upload: tamekah-marshall

Post on 02-Jan-2016

17 views

Category:

Documents


1 download

DESCRIPTION

Database Solutions for Storing and Retrieving XML Documents. IBM’s DB2 Relational Database with the XML Extender. XML Extender Features. XML document retrieval and generation from SQL queries XML document storage data management functions. XML document retrieval. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Database Solutions for Storing and Retrieving XML Documents

Database Solutions for Storing and Retrieving XML Documents

Page 2: Database Solutions for Storing and Retrieving XML Documents

IBM’s DB2 Relational Database with the XML Extender

Page 3: Database Solutions for Storing and Retrieving XML Documents

XML Extender Features

• XML document retrieval and generation from SQL queries

• XML document storage

• data management functions

Page 4: Database Solutions for Storing and Retrieving XML Documents

XML document retrieval

• Query syntax adheres to W3C standards Extensive Stylesheet Language Transformation(XSLI) and XML Path Language(Xpath)

• entire documents can be retrieved

• XML elements can be dynamically extracted

Page 5: Database Solutions for Storing and Retrieving XML Documents

XML document generation

• XML Extender provides stored procedures to generate XML documents from existing data stored in DB2 tables

Page 6: Database Solutions for Storing and Retrieving XML Documents

XML document storage

• DB2’s XML Extender Serves as a Repository for XML documents and their document type definitions (DTDs)

• an entire document can be stored as an XML user-defined column

• the document can be decomposed into multiple tables and columns

Page 7: Database Solutions for Storing and Retrieving XML Documents

XML column option

• Document stored as user-defined type column

• three XML user-defined types(UDTs): XMLCLOB, XMLVARCHAR and XMLfile

• user-defined functions provided for insert, select and update operations

Page 8: Database Solutions for Storing and Retrieving XML Documents

UDTs

• XMLCLOB and XMLVARCHAR store an XML document as a CLOB and a VARCHAR respectively in DB2

• XMLFile stores an XML document as a file on a local file system

Page 9: Database Solutions for Storing and Retrieving XML Documents

XML collection

• An XML collection is a set of relational tables that contain data mapped to an XML document

• Data access definition(DAD) is used to define the mapping of document type definitions(DTD) to relational tables and columns

• stored procedures for select, insert, update

Page 10: Database Solutions for Storing and Retrieving XML Documents

XML column vs XML collection

• XML column provides a simple way to manage XML documents and provides fast searching and indexing capabilities

• ideal for static data not frequently updated

• better performance since no need to compose the document from DB2 data

Page 11: Database Solutions for Storing and Retrieving XML Documents

• XML collection provides a better mapping for an XML document which consists of multiple collections

• XML collection also supports existing DB2 data by providing a mechanism to generate an XML document for data interchange

Page 12: Database Solutions for Storing and Retrieving XML Documents

Provides Data Management Functions

• Data integrity

• security

• recoverability

• manageability

Page 13: Database Solutions for Storing and Retrieving XML Documents

Invoking DB2 XML Extender

• You can invoke DB2 XML Extender in a data access JavaBean through through WebSphere or in a Net.Data macro

• It can be used with DB2 or any ODBC-compliant database

Page 14: Database Solutions for Storing and Retrieving XML Documents

Other Database Solutions

• MicroSoft SQL Server

• Oracle’s Oracle8i database

Page 15: Database Solutions for Storing and Retrieving XML Documents

Conclusion

• IBM DB2 XML Extender and DB2 Universal Net.Data provide an end-to-end solution for storing and retrieving XML documents for business-to-business and business-to-consumer (with a browser) processing.