PART IV
Chapter 30 Semistructured Data and XML
30.1 Despite the excitement surrounding XML, it is important to note that most operational
business data, even for new Web-based applications, continues to be stored in relational
DBMSs. This is unlikely to change in the foreseeable future because of their reliability,
scalability, tools, and performance. Consequently, if XML is to fulfil its potential, some
mechanism is required to publish relational data in the form of XML documents. The
SQL:2003 standard has defined extensions to SQL to enable the publication of XML,
commonly referred to as SQL/XML. Discuss in detail these extensions.
SQL/XML contains:
a new native XML data type, XML, which allows XML documents to be treated as
a set of operators for the type:
XMLELEMENT, to generate an XML value with a single element as a child of
an implicit set of mappings from relational data to XML. The mapping may take as its
30.2 Provide XQuery expressions for the following queries based on the sample XML file (books.xml)
below.
–