Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Figure 1-1 summarizes Oracle XML DB architecture and its XML storage and processing capabilities.
Inside Oracle XML DB, XML documents are stored in XMLTypes. XMLTypes preserve XML documents and provide XML-based APIs, such as XPath query and XQuery, to access the XML data.
In Oracle Database 11g, XMLTypes can reside in relational tables as a column, in an XMLType object table, or can be stored in XML DB repository, which is a file system inside the Oracle database.
FIGURE 1-1. Oracle XML DB and its XML features
XMLType can be stored in different formats. XMLType can be stored in CLOBs, called CLOB XMLType. XMLType can also be stored in object-relational tables, called Object-Relational (O-R) XMLType, in which XML data is internally mapped to a set of object relational tables. In Oracle Database 11g, XMLType has a new format called Binary XMLType. Binary XMLType stores XML in a pre-parsed binary format with compressed storage and optimized query access. The binary XML format is defined as an Oracle standard, which can be used across Oracle applications.