10 - XML and Query

10 - XML and Query - Session 10 XML XML Query CS585 Fall...

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

View Full Document Right Arrow Icon
Session 10: XML & XML Query CS585 – Fall 2010 – Farid Parvini
Background image of page 1

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

View Full DocumentRight Arrow Icon
Introduction XML: Extensible Markup Language Defined by the WWW Consortium (W3C) Originally intended as a document markup language not a database language Documents have tags giving extra information about sections of the document E.g. <title> XML </title> <slide> Introduction …</slide> Derived from SGML (Standard Generalized Markup Language), but simpler to use than SGML Extensible , unlike HTML Users can add new tags, and separately specify how the tag should be handled for display Goal was (is?) to replace HTML as the language for publishing documents on the Web
Background image of page 2
XML Introduction (Cont.) The ability to specify new tags, and to create nested tag structures made XML a great way to exchange data , not just documents. Much of the use of XML has been in data exchange applications, not as a replacement for HTML Tags make data (relatively) self-documenting E.g. <bank> <account> <account-number> A-101 </account-number> <branch-name> Downtown </branch-name> <balance> 500 </balance> </account> <depositor> <account-number> A-101 </account-number> <customer-name> Johnson </customer-name> </depositor> </bank>
Background image of page 3

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

View Full DocumentRight Arrow Icon
History and References XML is a meta-language, a simplified form of SGML (Standard Generalized Markup Language) XML was initiated in large parts by Jon Bosak of Sun Microsystems, Inc., through a W3C working group References: 1. XML Pocket Reference,” Robert Eckstein, O‟Reilly & Associates, Inc., 1999 2. Describing and Manipulating XML Data,” Sudarshan S. Chawathe , Bulletin of Data Engineering, v22, n3, Sept. 99 3. XML Schema Tutorial,” Roger L. Costello http://www.xfront.com/ 4. XML namespaces: http://www.w3.org/TR/1999/REC-xml-names-19990114/ 5. XML specifications: http://www.w3.org/TR/REC-xml/ 6. XML Schema Part 0: Primer http://www.w3.org/TR/xmlschema-0/ 7. XML Schema Part 1: Structures http://www.w3.org/TR/xmlschema-1/ 8. XML Schema Part 2: Datatypes http://www.w3.org/TR/xmlschema-2/ 9. WWW Consortium XML Site: http://www.w3.org/XML/ 10. XML Namespaces Tutorial: http://zvon.org/xxl/NamespaceTutorial/Output/index.html 11. XML Tutorials: http://www.zvon.org/index.php?nav_id=tutorials&mime=html 12. XSL: http://www.w3.org/TR/xsl and http://www.w3.org/TR/xslt
Background image of page 4
Components An XML compliant application generally needs three files to display XML content: The XML document Contains the data tagged with meaningful XML elements A document type definition – DTD or Schema Specifies the rules how elements and attributes are logically related A stylesheet Dictates the formatting when the XML document is displayed. Examples: CSS - cascading style sheets, XSL - extensible style sheet language
Background image of page 5

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

View Full DocumentRight Arrow Icon
XML: Motivation Data interchange is critical in today‟s networked world Examples: Banking: funds transfer Order processing (especially inter-company orders) Scientific data Chemistry: ChemML, … Genetics: BSML (Bio-Sequence Markup Language), … Paper flow of information between organizations is being replaced by electronic flow of information
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/24/2011 for the course CS 585 at USC.

Page1 / 110

10 - XML and Query - Session 10 XML XML Query CS585 Fall...

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