You are on page 1of 13

NATIVE XML

ADVANCED DATABASE MANAGEMENT SYSTEM

ASHOK KUIKEL (3656/70)


ANIL DULAL (3654/70)
HEMANT RAJ SINGH (3662/70)
SUDIP SHRSETHA(3/70)
Overview 2

5/20/17
What is a native XML database?
Native XML database architectures
When should I use a native XML database?
Native XML database features
Native XML database 3

5/20/17
A database that stores XML documents as XML
Defines a (logical) model for an XML document
Fundamental unit of (logical) storage is a document
Can have any physical storage
Physical storage 4

5/20/17
Can have any physical storage
For example, can be built on a relational, hierarchical, or object-
oriented database...
... or use a proprietary storage format such as indexed,
compressed files
5

5/20/17
Native XML Database
Architectures
Text-based storage 6

5/20/17
<Address>
<Street>123 Main St.</Street>
<City>Chicago</City>
<State>IL</State>
<PostCode>60609</PostCode>
<Country>USA</Country>
</Address>

<Address>
<Address>
<Street>123 Main St.</Street>
<Address>
<Street>123 Main St.</Street>
<City>Chicago</City>
<Street>123 Main St.</Street>
<City>Chicago</City>
<State>IL</State>
<City>Chicago</City>
<State>IL</State>
<PostCode>60609</PostCode>
<State>IL</State>
<PostCode>60609</PostCode>
<Country>USA</Country>
<PostCode>60609</PostCode>
<Country>USA</Country>
</Address>
<Country>USA</Country>
</Address>
</Address>
Text-based storage 7

5/20/17
Stores documents as text
Can use file system, BLOB, proprietary storage, etc.
XML-aware text engine in RDBMS is a native XML database
Uses indexes heavily
Model-based storage 8

5/20/17
Stores documents according to a specific model
For example, maps DOM to relational database
Underlying storage can be relational, object-oriented,
hierarchical, or proprietary
Model-based storage 9

5/20/17
<Address>
<Street>123 Main St.</Street>
<City>Chicago</City>
<State>IL</State>
<PostCode>60609</PostCode>
<Country>USA</Country>
</Address>

Element

Element Element Element Element Element

Text Text Text Text Text


When Should I Use a Native XML
Database?
Storing document-centric documents
Natural format is XML
Retrieval speed is critical
Semi-structured data
Well-formed documents
Native XML Database Features

Document Collections
Contain related documents
Indexes

Some databases index everything


Some databases allow nested collections
Some databases index everything
Native XML Database Features
External data
Some databases can merge data from external databases, such as with ODBC,
OLE DB, JDBC
External data
Many databases simply replace existing document
Some databases allow updates through live DOM
Resources 13

5/20/17
Ronald Bourrets Papers Page
http://www.rpbourret.com/xml/index.htm
XML:DB.orgs Resources Page
http://www.xmldb.org/resources.html
XML:DB Mailing List
http://www.xmldb.org/projects.html