Marco Mesiti Dep. of Computer Science University of Genova XML eXtensible Markup Language.

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

DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 13-1 COS 346 Day 24.
History Leading to XHTML
XHTML 16-Apr-17.
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
XML A brief introduction ---by Yongzhu Li. XML --- a brief introduction 2 CSI668 Topics in System Architecture SUNY Albany Computer Science Department.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic XML.
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.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
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.
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.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
CPS120: Introduction to Computer Science The World Wide Web Nell Dale John Lewis.
XML CPSC 315 – Programming Studio Fall 2008 Project 3, Lecture 1.
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.
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
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.
Demystifying the eXtensible Markup Language Nick Roberts & Jim Few
3 XHTML.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
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 - Why: The HTML-Dilemma HTML, SGML, XML - How: Syntax, Concept, Language Elements Basics Well-formed XML-Documents (without DTD) Valid XML-Documents.
XML Basics Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Extensible Meta Language Markup Language.
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.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
10/15/20151 XML. 10/15/20152 Mark-up Languages Digitalizing information Content Format SGML HTML XML RDF OWL …
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
XML Extensible Markup Language
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
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.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
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.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
An Introduction to XML Paul Donohue May 8th 2002 Hotel Senator Zürich.
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.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
XML Basics A brief introduction to XML in general 1XML Basics.
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.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
Document Computing Technologies for Managing Electronic Document Collections Ross Wilkinson... [et al.] Circulation Counter [RES3H] ZA4080.D
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson LIS1510 Library and Archives Automation Issues XML and extensible systems Andy Dawson School.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
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.
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
XP 1Creating Web Pages with XML Tutorial 1 New Perspectives on XML Tutorial 1 – Creating an XML Document.
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.
Extensible Markup Language (XML) Pat Morin COMP 2405.
XML intro. 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.
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 QUESTIONS AND ANSWERS
Markup Languages Gilok Choi 9/17/2018
Allyson Falkner Spokane County ISD
Presentation transcript:

Marco Mesiti Dep. of Computer Science University of Genova XML eXtensible Markup Language

Marco Mesiti Dep. of Computer Science University of Genova

Marco Mesiti Dep. of Computer Science University of Genova What are smart data? Easy: data that are structured so that software can do useful work with them Example: –relational database data –vector images –serialized Java objects

Marco Mesiti Dep. of Computer Science University of Genova So, what are dumb data? Data which can only be used for one purpose, because of a lack of structure Example: –GIF image with text inside Can be displayed, but requires OCR software to retrieve the text as text

Marco Mesiti Dep. of Computer Science University of Genova Smart data on the Web Server-side, lots: –RDBMSs, SGML, special formats... Client-side, hardly any: –HTML, PDF, plain text.... May be? This means that the Web consists of millions of pages of information, all of which is very awkward to process automatically

Marco Mesiti Dep. of Computer Science University of Genova The trouble with this Your browser essentially becomes a stupid display client, using HTML instead of other systems To work with the data in any way you must talk to software on the server, which performs the actual work The HTML in your browser is dump data

Marco Mesiti Dep. of Computer Science University of Genova The need of exchange business online exchange of information between heterogeneous systems However, the Web and the internet themselves do not support this in any way The alternative: SGML, ASN.1 are large and complex

Marco Mesiti Dep. of Computer Science University of Genova A critique of HTML Extraordinarily flexible, but low on structure Fixed tag set (vocabulary) No automatic validation Unreliable use of the syntax Nobody uses the data model

Marco Mesiti Dep. of Computer Science University of Genova How XML solves this Define your own tags (vocabulary) Validate against the definition Error handling and strict definition of the syntax Smaller and simpler than SGML Standardized APIs for working with it A data model specification is coming

Marco Mesiti Dep. of Computer Science University of Genova XML background A subset of SGML Simplifies SGML by: –leaving out many syntactical options and variants –leaving out some DTD features –leaving out some troublesome features Standard approved by the W3C

Marco Mesiti Dep. of Computer Science University of Genova A simple and complete XML document: 33, Terry Dr. Morristown Elements markup End tag Content Start tag

Marco Mesiti Dep. of Computer Science University of Genova Elements Attach semantics to a piece of a document Have an element type (`example’, `name’) represented by the markup. Can be nested at any depth Can contains: –other elements (sub-elements) –text (data content) –a combination of them (mixed content)

Marco Mesiti Dep. of Computer Science University of Genova Document Element It is the outer element containing all the elements in the document example: … It must always exist

Marco Mesiti Dep. of Computer Science University of Genova Empty Elements elements without content –They do not have end tags –Particular representation of start tags example:

Marco Mesiti Dep. of Computer Science University of Genova Attributes Used to annotate the element with extra information Always attached to start tags: Elements can have any number of attributes, but all distinct

Marco Mesiti Dep. of Computer Science University of Genova An XML Document Dear Dr. Guerrini, this is my resume. Dario Bozzali 35, Lake Street Morristown

Marco Mesiti Dep. of Computer Science University of Genova Elements Vs Attributes An element, when: –I need fast searching process –it is visible to all –it is relevant for the meaning of the document An attribute, when: –it is a choice –it is visible only to the system –it is not relevant for the meaning of the document Do I use an element or an attribute to store semantic info?

Marco Mesiti Dep. of Computer Science University of Genova Other Stuff Processing instructions, used mainly for extension purposes ( ) Comments ( ) Character references ( £ =£) Entities: –named files or pieces of markup –can be referred to recursively, inserted at point of reference

Marco Mesiti Dep. of Computer Science University of Genova Document Types Basic idea: we need a type associated with a document, just like objects and values A document type is a class of documents with similar structure and semantics Examples: slide presentations, journal articles, meeting agendas, method calls, etc.

Marco Mesiti Dep. of Computer Science University of Genova DTDs DTDs provide a standardized means for declaratively describing the structure of a document type This means: –which (sub-)elements an element can contain –whether it can contain text or not –which attributes it can have –some typing and defaulting of attributes

Marco Mesiti Dep. of Computer Science University of Genova An XML DTD

Marco Mesiti Dep. of Computer Science University of Genova Element Type Definition

Marco Mesiti Dep. of Computer Science University of Genova Attribute List Declaration

Marco Mesiti Dep. of Computer Science University of Genova Well-formed and Valid Documents A document is well-formed if it follows the grammar rules provided by W3C. A document is valid if it conforms to a DTD which specifies the allowed structure of the document

Marco Mesiti Dep. of Computer Science University of Genova What is XML useful for? In a Web context: –to simplify Web publishing???? –to enable advanced client-side applications –better searching

Marco Mesiti Dep. of Computer Science University of Genova Using XML outside the Web In general applications: –as an exchange format –as a cross-language serialization format –For a configuration/data files ???

Marco Mesiti Dep. of Computer Science University of Genova Using XML outside the Web In publishing, for structured documents E-commerce for database exchange and report generation (with XSL)

Marco Mesiti Dep. of Computer Science University of Genova Some XML applications CSD: CORBA Software Description (OMG) CDF: Channel Definition Format (MS) MathML: Mathematical Markup Lang. (W3c) GedML: Genealogical exchange format (M.Kay) WIDL: Web IDL (webMethods) UXF: UML eXchange Format (J. Suzuki) XML-RPC: XML-based RPC (Userland) CML: Chemical Markup Language (OMF)

Marco Mesiti Dep. of Computer Science University of Genova Some more XML applications VHG: Virtual HyperGlossary (VHG) ICE: Information and Content Exchange (Sun, Adobe at al) XSA: XML Software Autoupdate (L.M. Garshol) WDDX: Web Distributed Data Exchange (Allaire) XHTML: Extensible HTML (W3C)