PPT

378 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
378
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

PPT

  1. 1. Database Solutions for Storing and Retrieving XML Documents
  2. 2. IBM’s DB2 Relational Database with the XML Extender
  3. 3. XML Extender Features <ul><li>XML document retrieval and generation from SQL queries </li></ul><ul><li>XML document storage </li></ul><ul><li>data management functions </li></ul>
  4. 4. XML document retrieval <ul><li>Query syntax adheres to W3C standards Extensive Stylesheet Language Transformation(XSLI) and XML Path Language(Xpath) </li></ul><ul><li>entire documents can be retrieved </li></ul><ul><li>XML elements can be dynamically extracted </li></ul>
  5. 5. XML document generation <ul><li>XML Extender provides stored procedures to generate XML documents from existing data stored in DB2 tables </li></ul>
  6. 6. XML document storage <ul><li>DB2’s XML Extender Serves as a Repository for XML documents and their document type definitions (DTDs) </li></ul><ul><li>an entire document can be stored as an XML user-defined column </li></ul><ul><li>the document can be decomposed into multiple tables and columns </li></ul>
  7. 7. XML column option <ul><li>Document stored as user-defined type column </li></ul><ul><li>three XML user-defined types(UDTs): XMLCLOB, XMLVARCHAR and XMLfile </li></ul><ul><li>user-defined functions provided for insert, select and update operations </li></ul>
  8. 8. UDTs <ul><li>XMLCLOB and XMLVARCHAR store an XML document as a CLOB and a VARCHAR respectively in DB2 </li></ul><ul><li>XMLFile stores an XML document as a file on a local file system </li></ul>
  9. 9. XML collection <ul><li>An XML collection is a set of relational tables that contain data mapped to an XML document </li></ul><ul><li>Data access definition(DAD) is used to define the mapping of document type definitions(DTD) to relational tables and columns </li></ul><ul><li>stored procedures for select, insert, update </li></ul>
  10. 10. XML column vs XML collection <ul><li>XML column provides a simple way to manage XML documents and provides fast searching and indexing capabilities </li></ul><ul><li>ideal for static data not frequently updated </li></ul><ul><li>better performance since no need to compose the document from DB2 data </li></ul>
  11. 11. <ul><li>XML collection provides a better mapping for an XML document which consists of multiple collections </li></ul><ul><li>XML collection also supports existing DB2 data by providing a mechanism to generate an XML document for data interchange </li></ul>
  12. 12. Provides Data Management Functions <ul><li>Data integrity </li></ul><ul><li>security </li></ul><ul><li>recoverability </li></ul><ul><li>manageability </li></ul>
  13. 13. Invoking DB2 XML Extender <ul><li>You can invoke DB2 XML Extender in a data access JavaBean through through WebSphere or in a Net.Data macro </li></ul><ul><li>It can be used with DB2 or any ODBC-compliant database </li></ul>
  14. 14. Other Database Solutions <ul><li>MicroSoft SQL Server </li></ul><ul><li>Oracle’s Oracle8i database </li></ul>
  15. 15. Conclusion <ul><li>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. </li></ul>

×