Opentopia Directory Encyclopedia Tools

XML database

Encyclopedia : X : XM : XML : XML database


There are two major classes of XML database.

Note: 'XML-enabled' implies that the database does the conversion itself as opposed to middleware.

Why XML in databases? O'Connell (2005, 9.2) states that one of the reasons is that XML is increasingly used for data transport, which has meant that "data is extracted from databases and put into XML documents and vice versa". It may be more efficient (in terms of conversion costs) and easier to store the data in XML format.

Native XML databases

These databases store XML as either textual data or use an internalized format for faster overall processing. Most Native XML databases also provide support for indexing XML which improves query performance.

The formal definition of a Native XML Database, as previously defined by the XML:DB consortium, states that a Native XML Database...

Additionally, many XML databases provide a logical model of grouping documents, called 'Collections'. Many collections can be created and managed at one time. In some implementations, collections can also be laid out in a hierarchical fashion, much in the same way that an operating system's directory structure works.

All XML databases now support at least one form of querying syntax. Minimally, just about all of them support XPath for performing queries against documents or collections of documents. XPath is a simple pathing system that allows you to identify nodes that match a particular set of criteria.

In addition to XPath, many XML databases support XSLT as a method of transforming documents or query results that are being retrieved from the database. XSLT is a declarative language written using an XML grammar. Its purpose is to define a set of XPath filters that will be used to transform documents in part or in whole into other formats including Text, XML, HTML, or PDF.

Eventually, most XML databases will support XQuery to perform querying. XQuery includes XPath as a node selection method, but extends XPath to provide transformational scaffolding. Its syntax is sometimes referred to as FLWR (pronounced 'Flower') because the flow may include the following statements: 'For', 'Let', 'Where' and 'Return'

Some XML databases support an API called the XML:DB API (or XAPI) as a form of implementation-independent access to the XML datastore. In XML databases, XAPI is analogous to ODBC for relational databases.

Choice of Database

As a general guideline, O'Connell (2005, 9.2) states that the two types of XML database lend themselves to different tasks. Source: Bhargava et al. (2005).

Implementations

References

Available from: http://www.cs.utexas.edu/users/dsb/cs387h/XMLDatabases.ppt Date Accessed: 10th June 2005.

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.

Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: