XML – a data sharing standard DSC340 Mike Pangburn.

Slides:



Advertisements
Similar presentations
Tables Feb. 14, Tables Great way to organize and display information Laid out in columns and rows Think of an excel spreadsheet Defined with tag.
Advertisements

XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
WeB application development
XSL eXtensible Stylesheet Language. What is XSL? XSL is a language that allows one to describe a browser how to process an XML file. XSL can convert an.
1. Content – Collective term for all text, images, videos, etc. that you want to deliver to your audience. 2. Structure – How the content is placed on.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
Database Management Systems, R. Ramakrishnan1 Introduction to Semistructured Data and XML Chapter 27, Part D Based on slides by Dan Suciu University of.
HTML and Web Page Design Presented by Frank H. Osborne, Ph. D. © 2005 ID 2950 Technology and the Young Child.
Agenda from now on Done: SQL, views, transactions, conceptual modeling, E/R, relational algebra. Starting: XML To do: the database engine: –Storage –Query.
1 Lecture 10 XML Wednesday, October 18, XML Outline XML (4.6, 4.7) –Syntax –Semistructured data –DTDs.
1 Lecture 10: Database Design XML Wednesday, October 20, 2004.
1 Introduction to XML Yanlei Diao UMass Amherst April 19, 2007 Slides Courtesy of Ramakrishnan & Gehrke, Dan Suciu, Zack Ives and Gerome Miklau.
More HTML Chapter 4. 2 Nesting Tags How do you write the following in HTML? The wrong way: This is really, REALLY fun ! Tags must be correctly nested.
1 Lecture 08: XML and Semistructured Data. 2 Outline XML (Section 17) –XML syntax, semistructured data –Document Type Definitions (DTDs) XPath.
1 Lecture 08: XML and Semistructured Data. 2 Outline XML (Section 17) –XML syntax, semistructured data –Document Type Definitions (DTDs) XPath.
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
Creating Tables in a Web Site Using an External Style Sheet
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
HTML & XHTML Introduction. First HTML 1992 Marked-up text to represent a hypertext document for transmission over the network The hypertext mark-up language.
Creating a Basic Web Page
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
XML and XPath. Web Services: XML+XPath2 EXtensible Markup Language (XML) a W3C standard to complement HTML A markup language much like HTML origins: structured.
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
Introduction to XML 1. XML XML started out as a standard data exchange format for the Web Yet, it has quickly become the fundamental instrument in the.
1 HTML XHTML. 2 Understand the Doctype tag Know the html tags which are now classed as depreciated Understand how Dreamweaver adds styles Add styles to.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government.
HTML Concepts and Techniques Fourth Edition Project 12 Creating and Using XML Documents.
XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
Web Design 3080 – Week 2 More Fun With Delicious.com Setting up a ‘network’. 1.Go to Delicious.com and sign up for a personal account 2.Once your account.
Windows Presentation Foundation (WPF) Chapter 16 Dr. Abraham.
HTML: Hyptertext Markup Language Doman’s Sections.
Lecture 5: XML Tuesday, January 16, Outline XML, DTDs (Data on the Web, 3.1) Semistructured data in XML (3.2) Exporting Relational Data in XML (8.3.1)
1 Web Application Programming Presented by: Mehwish Shafiq.
1 Overview of XSL. 2 Outline We will use Roger Costello’s tutorial The purpose of this presentation is  To give a quick overview of XSL  To describe.
1 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
What it is and how it works
1 Introduction to Semistructured Data and XML. 2 How the Web is Today  HTML documents often generated by applications consumed by humans only easy access:
More XML: semantics, DTDs, XPATH February 18, 2004.
XML and SVG from PQL By Dave Doulton Computing Services University of Southampton.
How the Web Works Building a Website – Lesson 1. How People Access the Web Browsers People access websites using software called a web browser. To view.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
XML. HTML Before you continue you should have a basic understanding of the following: HTML HTML was designed to display data and to focus on how data.
External Style Sheets Exploring Computer Science – Lesson 3-6.
Basic HTML Document Structure. Slide 2 Goals (XHTML HTML5) XHTML Separate document structure and content from document formatting HTML 5 Create a formal.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
Web Design – Week 2 Introduction to website basics Website basics: How the Web Works Client / server architecture Packet switching URL components.
SEMI-STRUCTURED DATA (XML) 1. SEMI-STRUCTURED DATA ER, Relational, ODL data models are all based on schema Structure of data is rigid and known is advance.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
XML Introduction to XML Extensible Markup Language.
Connecting to External Data. Financial data can be obtained from a number of different data sources.
Glencoe Introduction to Web Design Chapter 4 XHTML Basics 1 Review Do you remember the vocabulary terms from this chapter? Use the following slides to.
Advanced Accounting Information Systems Day 28 Introduction to XBRL October 30, 2009.
Lecture 14: Relational Algebra Projects XML?
Getting Started with CSS
>> Introduction to CSS
Management of XML and Semistructured Data
Microsoft Office Illustrated
Semi-Structured data (XML Data MODEL)
Lecture 9: XML Monday, October 17, 2005.
Lecture 8: XML Data Wednesday, October
Introduction to Database Systems CSE 444 Lecture 10 XML
Semi-Structured data (XML)
Lecture 11: XML and Semistructured Data
Presentation transcript:

XML – a data sharing standard DSC340 Mike Pangburn

Data-sharing challenge Companies need to “talk” across different locations/systems and software Most database systems (and other software applications, e.g., Excel) can read text files formatted as XML.

Blind Men and Elephants

The ol’ standby: tab (or comma) delimited data… Who: authored it? to contact about data? What: are contents of database? When: was it collected? processed? finalized? Where: was the study done? Why: was the data collected? How: were data collected? processed? Verified? … can be pretty useless!

Metadata Literally, “data about data” a set of data that describes and gives information about other data ― Oxford English Dictionary

Early Example of Metadata

Is HTML a good way to share data? Bibliography Foundations of Databases Abiteboul, Hull, Vianu Addison Wesley, 1995 Data on the Web Abiteoul, Buneman, Suciu Morgan Kaufmann, 1999 Bibliography Foundations of Databases Abiteboul, Hull, Vianu Addison Wesley, 1995 Data on the Web Abiteoul, Buneman, Suciu Morgan Kaufmann, 1999

XML: Tags provide meaning (metadata) Foundations… Abiteboul Hull Vianu Addison Wesley 1995 …

XML vs. HTML HTML DELTA 101 Atlanta Brussels flight information XML DELTA 101 Atlanta Brussels flight information

Another example: iTunes Library is XML Track ID 617 Name Take Five Artist Dave Brubeck Quartet Album Time Out Genre Jazz Kind AAC audio file Size Total Time ….

Acct./Fin XML example XBRL (eXtensible Business Reporting Language) is a language for the electronic communication of business and financial data. For example, company net profit has its own unique tag. Edgar Online (SEC company information) uses XBRL The solution will allow users to request XBRL formatted data for all US equities from within Microsoft Excel, custom templates, and the web.

HTML vs. XML HTML started with very few tags, but… HTML now has many tags, and more keep being added over time Messy, yet not customizable XML has very few standard tags You add custom tags that are particular to your data needs

XML helps solves the “Is this an elephant?” problem

The following code is legal in HTML: This is a paragraph This is another paragraph In XML all elements must have a closing tag like this: This is a paragraph This is another paragraph Opening and closing tags must have the same case: This is correct This is incorrect More strict tagging rules than HTML

In HTML, improperly nested tags like the following are frowned upon, but will not cause an error: This text is bold and italic In XML all elements must be properly nested within each other like this This text is bold and italic More strict tagging rules than HTML

Visualizing XML data: a “Tree” <data> Mary Maple 345 Seattle John Thailand </data> data Mary person name address name address streetnocity Maple345 Seattle John Thai phone id o555 Element node Value node Attribute node

Database data vs. XML Data John 3634 Sue 6343 Dick 6363 John 3634 Sue 6343 Dick 6363 row name phone “John”3634“Sue”“Dick” XML: persons Database table:

XML data can usually fit a DBMS table… Consider the case of: missing attributes An acceptable fit with table Even though blanks are deemed a bit undesirable in database tables John John Joe Joe </person>  no phone ! namephone John1234 Joe-

…but the fit is not always good Problematic case: Repeated attributes A poor fit with table, because database- design rule is that you should not have two columns with the same name: Mary Mary </person>  two phones ! namephone Mary If XML data had distinct “home” and “cell” columns, the issue goes away

Formatting (visualizing) XML data Formatting (visualizing in a web page) XML data requires a separate file What is that separate file? It’s called a “style sheet” There are a couple different standards for style sheets XML-specific standard: XSL Flexible standard: CSS CSS can be used with both.xml and.html files We will look at CSS after XML