lecture7 - Semi-structured or Web-like Databases CS30785...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Semi-structured or Web-like Databases CS30785 Lecture 7 DTD Dr. Gangmin Gary Li Department of CSSE XJTLU Gangmin.li@xjtlu.edu.cn Room: D441 DTD CS30785 - Semistructured or Web-like databases Outlines DTD basics DTD building blocks DTD file as an external resource DTD as a schema for DB XML Schema DTD CS30785 - Semistructured or Web-like databases 7-2 DTD Basics DTD stands for Document Type Definition The purpose of a DTD is to define the legal building blocks of an XML document. A DTD defines the document structure with a list of legal elements and attributes. A DTD can be declared inline inside an XML document, or as an external reference. DTD CS30785 - Semistructured or Web-like databases Learning DTD: http://www.w3schools.com/dtd/default.asp 7-3 DTD Examples DTD CS30785 - Semistructured or Web-like databases 7-4 The Building Blocks of XML Documents Seen from a DTD point of view, all XML documents are made up by the following building blocks: Elements - Elements are the main building blocks of both XML and HTML documents. Attributes - s provide extra information about elements . Entities PCDATA CDATA DTD CS30785 - Semistructured or Web-like databases 7-5 Entities Some characters have a special meaning in XML, like the less than sign (<) that defines the start of an XML tag. Most of you know the HTML entity: " ". This "no-breaking-space" entity is used in HTML to insert an extra space in a document. Entities are expanded when a document is parsed by an XML parser....
View Full Document

This note was uploaded on 05/22/2011 for the course CS 30785 taught by Professor Garyli during the Spring '11 term at University of Liverpool.

Page1 / 29

lecture7 - Semi-structured or Web-like Databases CS30785...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online