XML Extensible Markup Language. What is XML? An infrastructure for describing text and data Developed by W3C(the World Wide Web Consortium)

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.
 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
© De Montfort University, XML – a meta language Howell Istance and Peter Norris School of Computing De Montfort University.
Extensible Markup Language Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
Thayer School of Engineering Dartmouth Lecture 2 Overview Web Services concept XML introduction Visual Studio.net.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
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 Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
A U eXtensible Markup Language (XML) Professor J. Alberto Espinosa ITEC 334 Fall 2008 Computer Programming in the Web Era.
XML October 24, Unit 6. What is XML? Stands for eXtensible Markup Language It is a markup language, like HTML But, –XML is designed to markup data –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.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
1/14 ITApplications XML Module Session 2: Using and Creating XML Documents.
XML Files and ElementTree
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
Introduction to XML. XML - Connectivity is Key Need for customized page layout – e.g. filter to display only recent data Downloadable product comparisons.
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 Extensible Markup Language. What is XML? ● meta-markup language ● a language for defining a family of languages ● semantic/structured mark-up language.
XML Syntax - Writing XML and Designing DTD's
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
Session IV Chapter 9 – XML Schemas
Electronic Commerce COMP3210 Session 4: Designing, Building and Evaluating e-Commerce Initiatives – Part II Dr. Paul Walcott Department of Computer Science,
How do I use HTML and XML to present information?.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language  XML is a markup language for creating documents containing structured information.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI 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.
17 Apr 2002 XML Syntax: Documents Andy Clark. Basic Document Structure Element tags – Elements have associated attributes Text content Miscellaneous –
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.
1 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
An Introduction to XML Sandeep Bhattaram
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
The eXtensible Markup Language (XML). Presentation Outline Part 1: The basics of creating an XML document Part 2: Developing constraints for a well formed.
What it is and how it works
XML for Text Markup An introduction to XML markup.
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 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.
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.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
XML Document Type Definitions and the Document object model.
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.
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.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
XML Extensible Markup Language
XML Introduction to XML Extensible Markup Language.
Beyond HTML: Extensible Markup Language (XML)
Extensible Markup Language (XML) Pat Morin COMP 2405.
XML QUESTIONS AND ANSWERS
XML.
14 XML.
Presentation transcript:

XML Extensible Markup Language

What is XML? An infrastructure for describing text and data Developed by W3C(the World Wide Web Consortium) An XML document contains special instructions called tags XML allows users to define their own tags

What is XML? A language for describing data of any type A language for creating other markup languages –A metalanguage Derived from SGML(Standard Generalised Markup Language) –XML subset of SGML

Comparison with HTML HTML is a markup language for displaying information(with elements like headings and paragraphs, bold and italics), XML is a markup language for describing data, that is for managing information HTML has a fixed collection of tags, XML allows users define their own tags

XML With XML any type of information can be represented by creating a new markup language –Music –Recipes –Molecular structure of chemicals –Mathematical formulae

XML – new tags Consider a database of books. In XML you could have tags to represent: –Booktitle –Author –Price –ISBN Etc…

XML example The XML Companion Neil Bradley $

XML example XML in Action April 2, 2007 Joe Bloggs Example of XML XML is a Markup Language that allows its users to specify their own tags

Strengths of XML It is a simultaneously human and machine readable format It supports Unicode, allowing information written in any human language to be communicated It can represent data structures in computer science such as records, lists and trees Its self-documenting format describes field names as well as values The strict syntax makes parsing algorithms simple It is platform independent

Criticisms of XML Its syntax is verbose This may effect efficiency of applications using XML Does not directly support data types

Another example Basic bread Flour Yeast Water Salt Mix all ingredients together, and knead thoroughly. Cover with a cloth, and leave for one hour in warm room. Knead again, place in a tin, and then bake in the oven.

XML Syntax XML Declaration Elements Mix all ingredients together, and knead thoroughly. Attributes Flour Document Element- every xml document should have one of these: in previous example this is the recipe element(root element)

XML Syntax Empty Elements –Special syntax is provided for these elements Normally an element would be denoted by Special Characters: e.g. if you need to use as actual text..five predeclared entities –&amp& –&lt< –&gt> –&apos‘ –&quot“ e.g to produce: M&E Enterprises in an XML browser M&E Enterprises

Correctness in an XML document Two measures of correctness exist –Well-formed: does the xml file conform to all syntax rules, e.g. does a non-empty element have a closing tag as well as an opening tag –Valid: the data conforms to a set of user defined rules. These rules are specified in the Document Type Definition(DTD).

Well-formed XML documents Well-formed documents have the following properties: –One and only one root element –Non-empty elements are delimited by a start- tag and an end-tag –All attribute values are quoted –Tags may be nested but must not overlap –Element names are case sensitive

Valid XML documents A Valid XML document must be –Well-formed –Must comply with a description of the type of the XML document Prior to the arrival of XML if two programs needed to share information the software designers had to define special file formats to share data. This required writing detailed specifications of these formats and special-purpose parsers

Customized Markup Languages MathML –Developed for describing mathematical notation –Comparison with Latex Latex uses special symbols which may not be intuitive MathML more meaningful, can be displayed on the web

MathML example

Errors in XML

XML and Web editing tool Amaya – –Download and install

Amaya You can use Amaya to produce MathML