lec15.366 - Winter 2008 CPE/CSC 366 Database Modeling...

Info iconThis preview shows pages 1–3. 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
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: . . Winter 2008 CPE/CSC 366: Database Modeling, Design and Implementation Alexander Dekhtyar . . XML DTD A brief introduction Glossary XML E X tensible M arkup L anguage. DTD D ocument T ype D efinition ( D escription). XML element A unit of markup used in XML. With each element , an iden- tifier is associated. Elements are distinguished by putting their identifier between angle brackets (opening tags). Elements may have content and attributes . The end of the content specified by an element is represented by the element’s identifier with a “/” character in front, enclosed in angle brackets (closing tags). XML element attribute A (name,value) pair associated with a particular element. Attributes and their values are specified within the XML element . XML element content Part of XML contained between the opening and clos- ing tags of an XML element . XML tag See XML element . XML DTD XML DTD allows one to describe the structure of an XML document. XML DTD s contain the means for a user to specify XML elements forming the docu- ment, their content/structure and their attributes . If an XML DTD is associated with a particular XML document, than, an XML parser may perform a number of checks to establish whether the structure of the document matches that described by the DTD. If the checks are successful, the document is declared to be valid (w.r.t. given DTD). < !DOCTYPE [ ] > !DOCTYPE declaration is used to specify the root of the XML document and as the “wrapper” around the rest of the DTD. The format of this declaration is 1 < !DOCTYPE rootElement [ Elements ] > Here, rootElement is the id of the root element of the XML document and Elements refers to a sequence of XML DTD declarations describing the struc- ture of the XML document (See below). Example. < !DOCTYPE bibliography [ ... ] > defines an XML document that has as its root the element < bibliography > ....
View Full Document

This note was uploaded on 05/19/2008 for the course CSC 365 taught by Professor Dekhtyar during the Spring '08 term at Cal Poly.

Page1 / 7

lec15.366 - Winter 2008 CPE/CSC 366 Database Modeling...

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

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