An Introduction to XML Patrice Bonhomme & Laurent Romary Lucid-ITLORIA eXtensible Markup Language version 1.0 Recommendation,

Slides:



Advertisements
Similar presentations
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.
Advertisements

DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
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: Extensible Markup Language
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
1 CP3024 Lecture 9 XML revisited, XSL, XSLT, XPath, XSL Formatting Objects.
Tutorial 9 Working with XHTML
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.
Tutorial 11 Creating XML Document
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
Introduction to XML This material is based heavily on the tutorial by the same name at
Copyright © 2002 ProsoftTraining. All rights reserved. XML Document Design.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Aalborg University – Department of Production XML Extensible Markup Language Kaj A. Jørgensen Aalborg University, Department of Production XML – Extensible.
ECA 228 Internet/Intranet Design I Intro to XSL. ECA 228 Internet/Intranet Design I XSL basics W3C standards for stylesheets – CSS – XSL: Extensible Markup.
Sheet 1XML Technology in E-Commerce 2001Lecture 6 XML Technology in E-Commerce Lecture 6 XPointer, XSLT.
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.
Scientific Markup Languages Birds of a Feather A 10-Minute Introduction to XML Timothy W. Cole Mathematics Librarian & Professor of.
School of Computing and Management Sciences © Sheffield Hallam University To understand the Oracle XML notes you need to have an understanding of all these.
Introduction technology XSL. 04/11/2005 Script of the presentation Introduction the XSL The XSL standard Tools for edition of codes XSL Necessary resources.
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.
Another PillowTalk Presentation  2004 Dynamic Systems, Inc. Introduction to XML for SOA Lee H. Burstein,
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
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 About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
CP3024 Lecture 9 XML: Extensible Markup Language.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
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.
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 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,
XML, XSL, and SOAP Building Object Systems from Documents CSC/ECE 591o Summer 2000.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
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 –
More XML XPATH, XSLT CS 431 – February 23, 2005 Carl Lagoze – Cornell University.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 14 This presentation © 2004, MacAvon Media Productions XML.
XML – Basic Concepts (modified version from Dr. Praveen Madiraju) 2015, Fall Pusan National University Ki-Joune Li.
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.
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
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.
XML: Extensible Markup Language
Unit 4 Representing Web Data: XML
XML QUESTIONS AND ANSWERS
XML in Web Technologies
Extensible Markup Language XML
Session I - Introduction
Session I - Introduction
Chapter 7 Representing Web Data: XML
CSE591: Data Mining by H. Liu
More XML XML schema, XPATH, XSLT
Presentation transcript:

An Introduction to XML Patrice Bonhomme & Laurent Romary Lucid-ITLORIA eXtensible Markup Language version 1.0 Recommendation, February 1998

Objectives Understanding the basic concepts of XML Elements, attributes and content DTD (, Schemas) Namespaces An overview of the main associated recommendations: XML path language ( XPath) XML pointers and links ( Xpointer and XLink) The transformation language of XSL (eXtensible Stylesheet Language)

XML in the document chain Edition XML Data Transformation XML XSL/XSLT Data processing Consultation HTML XHTML User perspective Conception DTD/ Schema Structures

A quick historical overview 1986 SGML (Standard Generalized Markup Language) ISO standard: ISO:8879: TEI (Text Encoding Initiative) 1990 HTML 1.0 (HyperText Markup Language) 1997/1998 XML 1.0 (eXtensible Markup Language)

What XML is: XML: eXtended Markup Language A W3C (World Wide Web Consortium) Recommendation A meta-language: it allows one to define his own markup language A simplification of the SGML standard SGML was intended to represent the “logical” structure of a document HTML was conceived as an application of SGML

A simplified SGML An XML document is an SGML document With some slight (but essential) differences... XML has the expressive power of SGML without its complexity Opens the door to the transmission of structured documents on the web Databases also entered the game...

What can we do with it? Data modeling (in complement to UML for instance) Publication of structured data on the web Separation of the logical structure of a document from its actual presentation Distributed applications (cf. well-formed vs. valid documents) Integrating data from heterogeneous sources

Why can’t we avoid it? Simplicity, which makes it simple to integrate into any kind of application XML specifications = 36 pages SGML standard, ISO-8879 = 250 pages Wide variety of application already implemented Industry: Publishing, Databases, Cataloguing, e-business etc. Science, research: genomics, astronomy, maths, etc. Consequence: a lot of software available: editors, parsers, bridges from and to existing editing environment or DBMSs

From HTML to XML - 1 A simple HTML document: Patrice Bonhomme tél : fax : équipe : Langue et Dialogue ( LORIA )

From HTML to XML - 2 The XML way: BONHOMME Patrice Langue et Dialogue

Some properties of XML Emphasis should be put on the “semantics” of a document Underlying model: tree structure Possibility to imagine a script language to access any part of an XML document e.g.: DB/MEMBRE[28]/MEL/text() XML supports Unicode character encodings

Elements and their content BONHOMME Patrice Langue et Dialogue Opening tag Closing tag Textual content Empty element Element

Elements and their attribute BONHOMME Patrice Langue et Dialogue Attribut name Attribut value

Other features XML declaration Commentaries CDATA section Processing instruction (application specific)

From one document to a class… How do I know the structure of my document? How may I share this structure with others?

Document Type Definition Expresses constraints on: Allowed element and attribute names Possible content of a given element (“content model”) To which elements a given attribute can be attached Similar to the traditional SGML approach, but: Simplified syntax The DTD is optional for a document

Example <!ELEMENT MEMBRE (LOGIN, NOM?, PRENOM?,MEL, TEL+, FAX*, EQUIPE)>......

Using a DTD … <!DOCTYPE MEMBRE [ … ]> …

Valid vs. Well-formed Well-formed documents Syntactic bracketing is preserved, without a DTD Empty element: = Valid documents With a DTD (à la SGML) Essential difference with SGML Extracting and re-using document fragments One usually produce valid document and distribute well- formed ones

XML namespaces Objectives: avoid conflicts between element and attribute names coming from various sources Composite documents XSLT instructions, Schema declarations Declaration: <DOC xmlns:mml=" xmlns=" blah blah : … re blah blah

Reserved namespaces The xml: prefix is reserved by the W3C for specific attributes:... …

XPath XML Path Language 1.0 REC Wide purpose syntax for addressing sub-parts of an XML document Joint specification used by XML Pointers ( XPointer recommendation) and the XSLT transformation language Allows one to access, select and filter XML fragments (cf. Tree representation of an XML document)

Addressing nodes in XPath Absolute addressing Given: a URL id(M28), root() Relative addressing along axes Given: a node ancestor, child descendant psibling, fsibling

An XML document represents a hierarchical structure The only view you should ever, ever have of an XML document

XPath - Exemples... Langue et Dialogue... /DB/MEMBRE[2] / ou /DB/DB/MEMBRE

XPointer Cf. HTML, anchors are needed: In XML, pointers can directly address a document component: Advantage: no need to modify the target document (notion of primary source)

XLink In HTML: the elements which may carry links are known:,,... In XML: any element may carry a simple or complex link This is done by using pre-defined attributes: W3C

Visualizing XML documents Basically, an XML document does not provide any information about its presentation Visualizing a document may depend on the target audience, device etc. Stylesheets: Casdading Style Sheets (CSS 1 et 2) Extensible Style Language (XSL) >> XSLT

eXtensible Style Language Describes the way a document will be shown, printed or verbalized… XML XSL +

XSL: a two-fold proposal XSL = Transformations + Visualizing properties XSLT : Transformation of XML documents Allows one to transform an XML document into another XML document Use this to produce well-formed (!) HTML documents XSL FO: formatting XML data FO = Formatting Objects Is supposed to be application independent (Word/RTF, PS, PDF, MIF, …) Not a recommendation yet:-(

General structure of an XSL document … … …

Declarative approach Sequence of rules (templates) specifying: The pattern (XPath) of nodes to which the rule can be applied Actions to be undertaken: Elements to be generated in the target document Selection of the elements to be further explored in the source document Additional functionalities: testing, sorting, etc.

A simple rule pattern (XPath) The content of will be the one produced by the instruction HTML element to be produced

Creating a HTML core document My directory

Selecting the nodes to be explored <xsl:apply-templates select=“NOM”/> - <xsl:apply-templates select=“EQUIPE”/>

Conclusion XML - a practical format (protocol) Next steps: Sharing DTD, resources tools Generic mechanisms for handling families of documents (cf. Nancy’s presentation)

References babel.alis.com/web_ml/xml/REC-xml.fr.html xml.apache.org