Lecture10 - Lecture 10 on XML Database This lecture...

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

View Full Document Right Arrow Icon
01/11/12 Lecture 10 on XML Database This lecture introduces XML database as an post relational database, and also as a standard Internet computer language for e- commerce. It covers XML schema in Document Type Definition (DTD) and DTD Graph format, and the methodology of mapping relational schema into XML schema. XML documents are also used for illustration.
Background image of page 1

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

View Full DocumentRight Arrow Icon
01/11/12 What is XML? EXtensible Markup Language (XML) World Wide Web Consortium (W3C) recommendation Version 1.0 as of 10/02/1998. Describes data, rather than instructing a system on how to process it. Provides powerful capabilities for data integration and data-driven styling. Introduces new processing paradigms and requires new ways of thinking about Web development. A Meta-Markup Language, a set of rules for creating semantic tags used to describe data.
Background image of page 2
01/11/12 XML is Extensible The tags used to markup HTML documents and the structure of HTML documents are predefined . The author of HTML documents can only use tags that are defined in the HTML standard . XML allows the author to define his own tags and his own document structure.
Background image of page 3

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

View Full DocumentRight Arrow Icon
01/11/12 Benefits of using XML It is structured. Documents are easily committed to a persistence layer. Platform independent, textual information. An open standard. Language independent. DOM and SAX are open, language-independent set of interfaces. It is Web enabled.
Background image of page 4
01/11/12 Typical XML System XML Document (Content) XML DTD (Rules) XML Parser (Processor) XML Application XML Document (content) XML Document Type Definition - DTD (structure definition; this is an operational part) XML Parser (conformity checker) XML Application (uses the output of the Parser to achieve your unique objectives)
Background image of page 5

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

View Full DocumentRight Arrow Icon
01/11/12 How XML can be used? XML can keep data separated from your HTML document. XML can also store data inside HTML documents (Data Islands). XML can be used to exchange data. XML can be used to store data.
Background image of page 6
01/11/12 XML Syntax An example XML document. <?xml version="1.0"?> <note> <to>Tan Siew Teng</to> <from>Lee Sim Wee</from> <heading>Reminder</heading> <body>Don't forget the Golf Championship this weekend!</body> </note>
Background image of page 7

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

View Full DocumentRight Arrow Icon
01/11/12 Example (cont’d) The first line in the document: The XML declaration should always be included. It defines the XML version of the document. In this case the document conforms to the 1.0 specification of XML. <?xml version="1.0"?> The next line defines the first element of the document (the root element): <note>
Background image of page 8
Example (cont’d) The next lines defines 4 child elements of the root (to, from, heading, and body): <to>Tan Siew Teng</to> <from>Lee Sim Wee</from> <heading>Reminder</heading> <body>Don't forget the Golf Championship this weekend! </body>
Background image of page 9

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

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

This note was uploaded on 01/11/2012 for the course CS CS3462 taught by Professor Drlee during the Spring '11 term at City University of Hong Kong.

Page1 / 46

Lecture10 - Lecture 10 on XML Database This lecture...

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

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