





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






2
HTML describes the presentation of the content Bibliography
Foundations of Databases Abiteboul, Hull, and Vianu
Addison Wesley, 1995
… XML describes only the content
Foundations of Databases Abiteboul Hull Vianu Addison Wesley 1995
…
) Separation of content from presentation simplifies content extraction and allows the same content to be presented easily in different looks
3
Foundations of Databases
Abiteboul Hull Vianu Addison Wesley 1995 …
5
Wrong: We show that x < 0… Right: We show that x < 0…
Right: ……… Wrong: ………
6
Homer… Marge… Bart……
… ……
… …
… …
… …
11
12
Relational data
Schema is always fixed in advance and difficult to change
Simple, flat table structures
Ordering of rows and columns is unimportant
Data exchange is problematic
“Native” support in all serious commercial DBMS
XML data
Which one is more intuitive? Which one is easier to implement?
14
]>
Foundations of Databases Abiteboul Hull Vianu Addison Wesley 1995 ……
…
15
bibliography
title author author author publisher year section
book book
Foundations of Databases
Abiteboul Hull Vianu Addison Wesley
1995
title section section …
Introduction
… …
In this section we introduce …
/bibliography/book[@price<50] XPath will automatically convert the price string to a numeric value for comparison
/bibliography/book[author=‘Abiteboul’]
/bibliography/book[publisher]
/bibliography/book[author=‘Abiteboul’]/@price
Note: “<” must be escaped if this expression appears in an XML document
20
21
23
//*[contains(name(), ‘section’)]
/bibliography/book/section[position()=1]/title A shorthand: /bibliography/book/section[1]/title
/bibliography/book/section[position()=last()]/title
/bibliography/book[count(section)<10]
//[name()!=‘book’]/
24