XML and XQuery: Understanding XML Data Model, XML Schema, XPath, and XQuery, Slides of Database Management Systems (DBMS)

An overview of xml (extensible markup language), its data model, xml schema, xpath (xml path language), and xquery (xml query language). Xml is a w3c standard used to structure and store data, while html describes the presentation. Xml schema and dtds define the structure and data types of xml documents. Xpath is used to navigate and select elements in an xml document, and xquery is used to query and manipulate xml data. The document also covers xml namespaces, keys, and foreign keys.

Typology: Slides

2012/2013

Uploaded on 04/27/2013

dhanapati
dhanapati 🇮🇳

4.1

(24)

123 documents

1 / 70

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
XML, XML Schema, XPath and
XQuery Query Languages
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46

Partial preview of the text

Download XML and XQuery: Understanding XML Data Model, XML Schema, XPath, and XQuery and more Slides Database Management Systems (DBMS) in PDF only on Docsity!

XML, XML Schema, XPath and

XQuery Query Languages

XML Data

From HTML to XML

HTML describes the presentation

HTML

Bibliography

Foundations of Databases

Abiteboul, Hull, Vianu


Addison Wesley, 1995

Data on the Web

Abiteboul, Buneman, Suciu


Morgan Kaufmann, 1999

## XML Terminology
  • tags: book, title, author, …
  • start tag: , end tag:
  • elements: …,…
  • elements are nested
  • empty element: abbrv.
  • an XML document: single root element well formed XML document: if it has matching tags

XML: Attributes

Foundations of Databases

Abiteboul

1995

attributes are alternative ways to represent data

So Far

  • Differences between “xml data” versus

“relational data”?

  • Data model?
  • Typed?
  • Homogeneity?
  • Correctness?
  • Usage/Purpose?

“XML Data Model”

Numerous competing models:

  • Document Object Model (DOM):
    • class hierarchy ( node , element , attribute ,…)
    • defines API to inspect/modify the document
  • XML query data model (formal)

XML Namespaces

  • syntactic: ,

  • semantic: provide URL for “shared” schema

     … … … 

defined here

So Far

  • What are “namespaces” good for?
  • Are they typically available for relational

databases?

DTD - Element Type Definitions

XML Schemas

  • generalizes DTDs (SGML derivative)
  • now, instead uses XML syntax
  • two main documents: structure and data types
  • XML Schema more powerful but more complex

So Far

  • Differences between “xml schema” versus

“relational schema”?

  • Purpose? Do we need it?
  • Definition time?
  • Strictness of typing?
  • Underlying model?

Elements versus Types in

XML Schema

DTD: