XML1 - XML and Beyond XML Motivation Huge amounts of...

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

View Full Document Right Arrow Icon
XML and Beyond
Background image of page 1

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

View Full DocumentRight Arrow Icon
XML Motivation Huge amounts of unstructured data on the web: HTML documents No structure information Only format instructions (presentation) Integration of data from different sources Structural differences Closely related to semistructured data
Background image of page 2
Semistructured Data Integration of heterogeneous sources Data sources with non rigid structures Biological data Web data Need for more structural information than plain text, but less constraints on structure than in relational data
Background image of page 3

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

View Full DocumentRight Arrow Icon
Characteristics of Semistructured Data Missing or additional tuples Multiple attributes Different types in different objects Heterogeneous collection Self-describing, irregular data with no apriori structure
Background image of page 4
HTML Document Example <h1> Bibliography </h1> <p> <i> Foundations of Databases </i> Abiteboul, Hull, Vianu <br> Addison Wesley, 1995 <p> <i> Data on the Web </i> Abiteoul, Buneman, Suciu <br> Morgan Kaufmann, 1999 Type of information Title Authors Year book
Background image of page 5

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

View Full DocumentRight Arrow Icon
The Idea Behind XML Easily support information exchange between applications / computers Reuse what worked in HTML Human readable Standard Easy to generate and read But allow arbitrary markup Uniform language for semistructured data Data Management
Background image of page 6
XML eXtensible Markup Language Universal standard for documents and data Defined by W3C Set of emerging technologies XLink, XPointer, XSchema, DOM, SAX, XPath, XQuery,…
Background image of page 7

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

View Full DocumentRight Arrow Icon
XML XML gives a syntax, not a semantic XML defines the structure of a document, not how it is processed Separate structural information from format instructions
Background image of page 8
The Structure of XML XML consists of tags and text Tags come in pairs <date> . ..</date> They must be properly nested <date> <day> ... </day> ... </date> --- good <date> <day> ... </date> ... </day> --- bad (You can’t do <i> ... <b> ... </i> ... </b> in HTML)
Background image of page 9

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

View Full DocumentRight Arrow Icon
XML text XML has only one “basic” type -- text. It is bounded by tags e.g. <title> The Big Sleep </title> <year> 1935 </ year> --- 1935 is still text XML text is called PCDATA (for parsed character data). It uses a 16-bit encoding.
Background image of page 10
XML structure Nesting tags can be used to express various structures. E.g. A tuple (record) : <person> <name> Malcolm Atchison </name> <tel> (215) 898 4321 </tel> <email> [email protected] </email> </person>
Background image of page 11

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

View Full DocumentRight Arrow Icon
XML structure We can represent a list by using the same tag repeatedly: <addresses> <person> ... </person> <person> ... </person> <person> ... </person> ... </addresses>
Background image of page 12
Terminology The segment of an XML document between an opening and a corresponding closing tag is called an element. <person> <name> Malcolm Atchison </name> <tel> (215) 898 4321 </tel> <tel> (215) 898 4321 </tel> <email> [email protected] </email> </person> element not an element element, a sub-element of
Background image of page 13

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

View Full DocumentRight Arrow Icon
XML is tree-like person name email tel tel Malcolm Atchison (215) 898 4321 (215) 898 4321 [email protected]
Background image of page 14
Mixed Content An element may contain a mixture of sub-elements and
Background image of page 15

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

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

This note was uploaded on 02/27/2010 for the course ECE 544 taught by Professor Ray during the Spring '10 term at Rutgers.

Page1 / 56

XML1 - XML and Beyond XML Motivation Huge amounts of...

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

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