Introduction to XML. XML - Connectivity is Key Need for customized page layout – e.g. filter to display only recent data Downloadable product comparisons.

Slides:



Advertisements
Similar presentations
CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
Advertisements

The eXtensible Markup Language (XML) An Applied Tutorial Kevin Thomas.
XML and Enterprise Computing. What is XML? Stands for “Extensible Markup Language” –similar to SGML and HTML –document “tags” are used to define content.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 13-1 COS 346 Day 24.
Introduction to XSLT. What is XML? Design Goals of XML XML Format XML Declaration ElementsAttributes.
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
XML: Extensible Markup Language BA Presented by: Tara Barnes, Lauren Jones, Ryan Kline.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
XML Vikki Brandon Jesse Josh. Quick Facts Who created it? –W3C Jon Bosak and Tim Bray as leaders and major contributors When? –Started in 1996 and finished.
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
5-1 Facilitating Business over the Internet: The XML language CR (2004) Prentice Hall, Inc. The xml goals The main objects of xml: Diagrams: Blocks and.
Developing a Basic Web Page with HTML
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Tutorial 11: Connecting to External Data
Introduction to XML This material is based heavily on the tutorial by the same name at
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
Tutorial 1: Getting Started with HTML5
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 XML Taken from Chapter 7.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
XML and XSL Institutional Web Management 2001: Organising Chaos.
XML and friends Part 1 - XML and DTD ELAG 2001 workshop 8 Jan Erik Kofoed © BIBSYS Library Automation.
XML The Overview. Three Key Questions What is XML? What Problems does it solve? Where and how is it used?
Introduction to XML Eugenia Fernandez IUPUI. What is XML? From the World Wide Web Consortium (W3C) The Extensible Markup Language (XML) is the universal.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
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 Extensible Markup Language. What is XML? An infrastructure for describing text and data Developed by W3C(the World Wide Web Consortium)
TEXT ENCODING INITIATIVE (TEI) Inf 384C Block II, Module C.
What is XML?  XML stands for EXtensible Markup Language  XML is a markup language much like HTML  XML was designed to carry data, not to display data.
CIS 451: Introduction to XML Dr. Ralph D. Westfall October, 2011.
HTML, XHTML, and CSS Sixth Edition Chapter 1 Introduction to HTML, XHTML, and CSS.
FIGIS’ML Hands-on training - © FAO/FIGIS An introduction to XML Objectives : –what is XML? –XML and HTML –XML documents structure well-formedness.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
Web Programming : Building Internet Applications Chris Bates CSE :
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
CP3024 Lecture 9 XML: Extensible Markup Language.
XML The “E-Lance Economy” or “Digital Economy” is a new challenge for interacting over networks. XML was developed by the World Wide Web Consortium (W3C)
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
Accessing Data Using XML CHAPTER NINE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
XML & varieties, e.g. VoiceXML By: Shawn Ramdass, Saji Abraham & Billy Santamorena.
The eXtensible Markup Language (XML). Presentation Outline Part 1: The basics of creating an XML document Part 2: Developing constraints for a well formed.
XML Design Goals 1.XML must be easily usable over the Internet 2.XML must support a wide variety of applications 3.XML must be compatible with SGML 4.It.
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
XML A Language Presentation. Outline 1. Introduction 2. XML 2.1 Background 2.2 Structure 2.3 Advantages 3. Related Technologies 3.1 DTD 3.2 Schemas and.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
Introduction to DTD A Document Type Definition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
XML The Extensible Markup Language (XML ), which is comparable to SGML and modeled on it, describes how to describe a collection of data. A standard way.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
XML The Overview. Three Key Questions What is XML? What Problems does it solve? Where and how is it used?
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
XP 1Creating Web Pages with XML Tutorial 1 New Perspectives on XML Tutorial 1 – Creating an XML Document.
Connecting to External Data. Financial data can be obtained from a number of different data sources.
XML QUESTIONS AND ANSWERS
Creating an XML Document
XML Data Introduction, Well-formed XML.
Tutorial 7 – Integrating Access With the Web and With Other Programs
Web Programming : Building Internet Applications Chris Bates CSE :
Presentation transcript:

Introduction to XML

XML - Connectivity is Key Need for customized page layout – e.g. filter to display only recent data Downloadable product comparisons – e.g. import to spreadsheet features, prices, etc. Application integration – translation of data from various application sources e.g. human resource, accounts, projects Data integration – coherent DB views Interchangeable files – enhance software development via number of tools, exchange information effortlessly

Need for software to spontaneously connect across the globe, exchange information, process and record exchanges Problems evident in Web pages – undifferentiated text makes search ability problematic, need to for human intervention HTML – page layout language, little scope for data analysis, need to slice and dice manually

Metadata – first step Spontaneous information exchange requires metadata One party indicates what each piece of information means, two or more parties agree on meaning, facilitating organisation of data in database schema Formal way to describe what a piece of data means Difficulty – parties need to agree on meaning

Shared Context Formal description of rules metadata must follow Applies to particular type of document, serves as contract between document sender and receiver One party can design shared context, post on internet so available to anyone who wishes to use/add

XML Approach Simple approach to metadata and shared context Authors add metadata through tags William Shakespeare Document designers add shared context through Document Type Definitions (DTDs) – a set of declarations that specify allowable order, structure and attributes of tags for particular document Structured via URL so any party can spontaneously access DTD, interpret its rules, and process the document

Goals of XML – 1. It shall be straightforward to use XML over the Internet 2. XML shall support a wide variety of applications 3. XML shall be compatible with SGML 4. It shall be easy to write programs that process XML documents 5. The number of optional features in XML is to be kept to an absolute minimum, ideally zero XML documents should be human-legible and reasonably clear XML design should be prepared quickly The design of XML should be formal and concise XML documents shall be easy to create Terseness in XML markup is of minimal importance

XML Conceptual Model Human and machine readability Defining content Defining structure Separation of content from relationships Separation of structure from presentation

XML software support (5) Fundamental software components – low level XML capabilities such as parsing and generating documents Software development tool support – tools for rapid application development, include utilities for manipulating XML documents and integrating with document development tools Document development tools – define DTDs and author XML documents easier than text editors. Graphical modeling tools/browsers for directly manipulating XML documents, support existing web content development and management

XML software support Web infrastructure support – to develop adaption momentum, browsers and servers must support XML – anyone can view XML from standard browser Translation components – convert all data formats to XML, similar to WPs supporting ‘save as rich text format’ feature Inevitable barriers to deployment = need to overcome

XML Specifications (2) Document portion – specifies how to use tagged markup to indicate meaning of data DTD portion – specifies how to indicate allowable structure for a class of XML document

Simple example - content David John Brown Software Technology Analyst

Simple example – DTD CONSTRAINTS ? 0 or 1 elements * 0 or more

Elements Fundamental unit of XML – author-specific chunk of information Consists of element name and element content One element at top – root or document element Four types of allowable content data content – contain only data Element content – contain only other elements Empty – contain neither data or elements Mixed content – contain both data and elements (viewed as poor practice) Attributes – attribute name and value, bounded by quotation marks database DBTYPE=“Oracle” column DATATYPE=“String”

Well formed XML There is one root element All nonempty elements have start tags and end tags that match exactly All empty elements have the correct empty tag syntax Elements are strictly nested – no overlapping elements

Entities Elements and attributes are logical mechanisms – enable authors to specify logical meaning of document content Entities are structural mechanisms – enable authors to manipulate physical structure Entity associates an entity name with a fragment of content

Entities in XML (4) Internal parsed entities – would allow “&author” within document and have it replaced by Kevin Parks External parsed entities – include entire file as part of document <!ENTITY address_section SYSTEM “./address.xml” <!ENTITY lineitems_section SYSTEM “./lineitems.xml” <!ENTITY payment_section SYSTEM “./payment.xml” &address_section; &lineitems_section; &payment_section;

Unparsed entities – allow authors to insert arbitrary data in document – may not be XML, XML process will not attempt to parse such an entity Parameter entities – work only in DTDs to specify an enumerated list of allowable attribute values. CARDTYPE (%card_list;)#REQUIRED>