An Introduction to XML Paul Donohue May 8th 2002 Hotel Senator Zürich.

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

What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
XML/EDI Overview West Chester Electronic Commerce Resource Center (ECRC)
IS 373—Web Standards Todd Will
XML A brief introduction ---by Yongzhu Li. XML --- a brief introduction 2 CSI668 Topics in System Architecture SUNY Albany Computer Science Department.
XML Introduction What is XML –XML is the eXtensible Markup Language –Became a W3C Recommendation in 1998 –Tag-based syntax, like HTML –You get to make.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Topics The "bigger picture" –The "XML sales pitch" –XML/XHTML vs. SGML/HTML –XML in electronic publishing –XML and the future, web 2.0 XML basics: –Building.
ECA 228 Internet/Intranet Design I Intro to XML. ECA 228 Internet/Intranet Design I HTML markup language very loose standards browsers adjust for non-standard.
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
Marco Mesiti Dep. of Computer Science University of Genova XML eXtensible Markup Language.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
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.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
Why XML ? Problems with HTML HTML design - HTML is intended for presentation of information as Web pages. - HTML contains a fixed set of markup tags. This.
Scientific Markup Languages Birds of a Feather A 10-Minute Introduction to XML Timothy W. Cole Mathematics Librarian & Professor of.
XML eXtensible Markup Language by Darrell Payne. Experience Logicon / Sterling Federal C, C++, JavaScript/Jscript, Shell Script, Perl XML Training XML.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
XML Open Computing Institute, Inc. 1 eXtensible Markup Language (XML)
School of Computing and Management Sciences © Sheffield Hallam University To understand the Oracle XML notes you need to have an understanding of all these.
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 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.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
XML - Why: The HTML-Dilemma HTML, SGML, XML - How: Syntax, Concept, Language Elements Basics Well-formed XML-Documents (without DTD) Valid XML-Documents.
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.
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
Electronic Commerce COMP3210 Session 4: Designing, Building and Evaluating e-Commerce Initiatives – Part II Dr. Paul Walcott Department of Computer Science,
Avoid using attributes? Some of the problems using attributes: Attributes cannot contain multiple values (child elements can) Attributes are not easily.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
XML Extensible Markup Language
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation An Introduction to XML.
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.
Lecture 16 Introduction to XML Boriana Koleva Room: C54
Web Technologies COMP6115 Session 4: Adding a Database to a Web Site Dr. Paul Walcott Department of Computer Science, Mathematics and Physics University.
1 Introduction to XML XML stands for Extensible Markup Language. Because it is extensible, XML has been used to create a wide variety of different markup.
An Introduction to XML Sandeep Bhattaram
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Understanding How XML Works Ellen Pearlman Eileen Mullin Programming the.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
What it is and how it works
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.
1 XML eXtensible Markup Language. 2 XML vs. HTML HTML is a HyperText Markup language HTML is a HyperText Markup language Designed for a specific application,
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
1 “Universal Data-Speak”: The eXtensible Markup Language Zack Ives CSE 590DB, Winter 2000 University of Washington 3 January 2000.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
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 –
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
XML Technology. Emerging Importance of XML –HTML-tagging is display oriented. –XML-based content tagging has important uses: data mining role-oriented.
Martin Kruliš by Martin Kruliš (v1.1)1.
Introduction to XML Jussi Pohjolainen TAMK University of Applied Sciences.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
XML Introduction to XML Extensible Markup Language.
XML Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
1 XML eXtensible Markup Language. 2 Introduction and Motivation Dr. Praveen Madiraju Modified from Dr.Sagiv’s slides.
1 Introduction to XML Babak Esfandiari. 2 What is XML? introduced by W3C in 98 Stands for eXtensible Markup Language it is more general than HTML, but.
XML BASICS and more…. What is XML? In common:  XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed.
Unit 4 Representing Web Data: XML
XML in Web Technologies
Chapter 7 Representing Web Data: XML
XML Introduction By Hongming Yu Feb 6th, 2002.
Allyson Falkner Spokane County ISD
Presentation transcript:

An Introduction to XML Paul Donohue May 8th 2002 Hotel Senator Zürich

Overview What Is XML? Why Use XML? Defining Rules with XML Related Technologies Demonstration Summary Questions Topics we will cover

What is XML? XML = Extensible Markup Language Not a programming language An open standard for representing structured data Describes data structure and content Separates data from its presentation XML In A Nutshell

What is XML? A woman without her man is nothing A woman without her man, is nothing A woman: without her, man is nothing Markup Clarifies Data

What is XML? Some History 1969Generalized Markup Language (GML) 1980Standardized Generalized Markup Language (SGML) 1986SGML becomes ISO standard 1991Hypertext Markup Language (HTML) 1996W3C begin work on a language to combine SGML & HTML 1998XML standard is published

What is XML? A PB / XML Messaging System Mr Paul Donohue PowerBuilder Developers 13: An XML Document

What is XML? Parts of an XML document XML Declaration Prolog Elements Attributes Comments Other Parts A PB / XML Messaging System Mr Paul Donohue PowerBuilder Developers 13:

What is XML? Elements are the basic building blocks of XML XML’s nouns Elements consist of start tag, contents and end tag… cat Empty elements can be shown as Contents can be data or other elements Elements can own attributes Elements

What is XML? Attributes give further information about an element XML’s adjectives Attributes consist of name, equals and value… cat_type=“persian” Attribute values are quote delimited strings Attributes are placed inside an element’s start tag Attributes

What is XML? XML messages are text files XML is case sensitive XML uses the Unicode 2.1 character set Special codes for markup characters such as < and & Characters

What is XML? All elements and attributes are named Must begin with a letter, underscore or colon Must continue with valid name characters  Letter / Underscore / Colon  Digit  Hyphen  Full stop May not begin with “XML” Names

What is XML? XML uses tags like in HTML XML complements HTML XML is for “smart data” XML is both data and document XML vs HTML

What is XML? Sybase PowerBuilder 7.1 £ Data encoded as HTML

What is XML? Sybase PowerBuilder Data encoded as XML

Why Use XML? Royalty free Industry standard Platform & vendor independent Self describing Flexible Caters for nested & repeating data Six Good Reasons

Why Use XML? Nobody “owns” XML No software to purchase No licensing fees Royalty Free

Why Use XML? XML version 1.0 became a W3C standard in 1998 Good support from vendors Low risk technology Large community of developers Industry Standard

Why Use XML? XML documents are text based Perfect for messaging There are no vendor-specific extensions PDA to Mainframe Platform & Vendor Independent

Why Use XML? Descriptive element & attribute names The name / data combination is easy to understand GBP XML can be viewed with a text editor Self Describing

Why Use XML? XML can handle any structured data XML can be easily transformed Direct access to the required data Flexible

Why Use XML? Nested data… An employee has an address and that address has a street and a post code Repeating data… An invoice has one or more items on it Hard to do with traditional file formats Nested & Repeating Data

Defining Rules Conform to the grammar of XML  One root element  Non-empty elements have start & end tags  Elements are nested correctly  Attributes are not repeated within elements  Attribute values are quoted Can be parsed by any parser The data may be nonsense Well-Formed XML Documents

Defining Rules Must contain a valid document type declaration Must obey the constraints of that declaration  Element sequence is valid  Required attributes are provided  Attribute values are a valid value Ensures data is valid for the application domain Rules are in a DTD or schema Valid XML Documents

Defining Rules DTDs define validation rules for XML documents  Elements – contents, order & occurrence  Attributes – valid & default values DTDs are optional DTDs can be internal or external DTDs are written in XML Declaration Syntax Document Type Definitions (DTD)

Defining Rules Schemas are more powerful that DTDs  Data types  Improved occurrence constraints Schemas are written in XML Schemas can refer to other schemas Get your DTD or schema correct before you code Schemas

Defining Rules Standard terms facilitate data exchange Industry-wide standards have emerged;  MathML : Mathematical Markup Language  CML : Chemical Markup Language  FPML : Financial Products Markup Language  CDF : Channel Description Format Check if your industry or organisation has a standard Semantics

Related Technologies Parsers : SAX & DOM Searching : XPath Formatting : CSS, XSL & XSLT Linking : XLink & XPointer Resource Description Framework (RDF) Overview

Related Technologies Event driven Can handle large files No random access Read only Primarily for Java Simple API for XML (SAX)

Related Technologies Standard set of function calls XML loaded into memory Best for smaller files Data is parsed into a tree of nodes Language and platform neutral Document Object Model (DOM)

Demonstration

Summary

What XML is Why we should use XML How to define rules in XML XML’s related technologies What have we learnt?

Summary Recommended reading Title : Professional XML Author : Mark Birbeck et al Publisher : Wrox Press Inc ISBN:

Summary Recommended reading Title : Fast Track To XML Author : Eric Zenor Publisher : Sybase Article :

Summary Useful Web Sites XML Org : W3C : XML FAQ : XML Cover Pages : XML Journal :

Summary MS XML Notepad XML Spy Useful XML Tools

Questions If you have any questions about this presentation please me or visit my web site. Web :