XML Extensible Markup Language

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 8-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Advertisements

DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
ICS-FORTH 1 May 22, 2001 Christos Georgis The extensible markup language: An introduction to XML What is a XML document ? How do we check its validity.
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application.
1 XMLXML Slide Courtesy to prof. Elis USC.
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 by Jon Pearce. What is XML? XML = eXstensible Markup Language = a meta language for defining markup languages. Examples: MathML, SVG (Scalable Vector.
1 XMLXML Slide Courtesy to prof. Elis USC.
DECO 3002 Advanced Technology Integrated Design Computing Studio Tutorial 5 – XML Basic School of Architecture, Design Science and Planning Faculty of.
Tutorial 11 Creating XML Document
COS 381 Day 16. Agenda Assignment 4 posted Due April 1 There was no resubmits of Assignment Capstone Progress report Due March 24 Today we will discuss.
W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application with a clean migration path from HTML 4.01 CSS: Style sheets.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
XML at Work John Arnett, MSc Standards Modeller Information and Statistics Division NHSScotland Tel: (x2073)
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 XML Taken from Chapter 7.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
WPF chapter 15 Dr. John Abraham Professor UTPA. WPF –an introduction WPF provides a single platform capable of handling graphics, audio and video. WPF.
XML eXtensible Markup Language w3c standard Why? Store and transport data Easy data exchange Create more languages WSDL (Web Service Description Language)
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.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 20 – Extensible Markup Language (XML) Outline 20.1 Introduction 20.2 Structuring Data 20.3 XML.
 2003 Prentice Hall, Inc. All rights reserved. 3 rd Edition Slide 1 Chapter 20 – Extensible Markup Language (XML) Outline 20.1 Introduction 20.2 Structuring.
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.
Sheet 1XML Technology in E-Commerce 2001Lecture 7 XML Technology in E-Commerce Lecture 7 XSL Formatting Objects, Java Data Binding.
XML Basics Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Extensible Meta Language Markup Language.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
1 XML - Extensible Markup Language. 2 HTML - Hypertext Markup Language n HTML has a fixed tag set. n Use these tags to describe how information is to.
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
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,
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
Web Services for Satellite Emulation Development Kathy J. LiszkaAllen P. Holtz The University of AkronNASA Glenn Research Center.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Scripting with the DOM Ellen Pearlman Eileen Mullin Programming the Web.
Windows Presentation Foundation (WPF) Chapter 16 Dr. Abraham.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 20 – Extensible Markup Language (XML) Outline 20.1 Introduction 20.2 Structuring Data 20.3 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.
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.
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 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.
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.
Chapter 15: XML TP2543 Web Programming Mohammad Faidzul Nasrudin.
SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson LIS1510 Library and Archives Automation Issues XML and extensible systems Andy Dawson School.
14/05/2003Christiane Schmidt1 XML – application A presentation about different examples of use.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C - The World Wide Web Consortium W3C - The World Wide Web Consortium.
XML Tools (Chapter 4 of XML Book). What tools are needed for a complete XML application? n Fundamental components n Web infrasructure n XML development.
XP 1Creating Web Pages with XML Tutorial 1 New Perspectives on XML Tutorial 1 – Creating an XML Document.
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
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 in Web Technologies
Session I - Introduction
Session I - Introduction
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Chapter 20 – Extensible Markup Language (XML)
XML.
Tutorial 3 Working with Cascading Style Sheets
14 XML.
Presentation transcript:

XML Extensible Markup Language

XML The World Wide Web Consortium's (W3C's) XML Working Group developed XML (Extensible Markup Language), which is derived from Standard Generalized Markup Language (SGML), in 1996. XML is for electronic data exchange and storage. A widely supported open technology (i.e., nonproprietary) A language used to create other markup languages to describe data in a structured manner.

What is XML? XML is the Extensible Markup Language. Language for creating markup languages Mathematical formulas Molecular structure of chemicals Music Recipes Create new tags Used for Storing Data in structured manner. Not a Formatting Language. Describes data of virtually any type. Not just for Web pages. Defined by W3C to be application and vender neutral in 1996.

XML describes structure and semantics, not formatting XML documents contain only data and Structure markups, Not formatting. Formatting can be added with: a browser that knows how to render these knew marked-up data. a style sheet (css). an Extensible Stylesheet Language (XSL).

Article.xml XML declaration. Element article is the root element. 1 <?xml version = "1.0"?> 2 3 <!-- Fig. 20.1: article.xml --> 4 <!-- Article structured with XML --> 5 6 <article> 7 8 <title>Simple XML</title> 9 10 <date>September 19, 2001</date> 11 12 <author> 13 <firstName>Tem</firstName> 14 <lastName>Nieto</lastName> 15 </author> 16 17 <summary>XML is pretty easy.</summary> 18 19 <content>Once you have mastered XHTML, XML is easily 20 learned. You must remember that XML is not for 21 displaying information but for managing information. 22 </content> 23 24 </article> XML declaration. Article.xml Element article is the root element. Elements title, date, author, summary and content are child elements of article.

Article.xml 1 <?xml version = "1.0"?> 2 3 <!-- Fig. 20.1: article.xml --> 4 <!-- Article structured with XML --> 5 <?xml-stylesheet type="text/css" href="article.css"?> 6 <article> 7 8 <title>Simple XML</title> 9 10 <date>September 19, 2001</date> 11 12 <author> 13 <firstName>Tem</firstName> 14 <lastName>Nieto</lastName> 15 </author> 16 17 <summary>XML is pretty easy.</summary> 18 19 <content>Once you have mastered XHTML, XML is easily 20 learned. You must remember that XML is not for 21 displaying information but for managing information. 22 </content> 23 24 </article> Article.xml

Rendering XML documents using CSS “article.css” title { display: block; font-family: Helvetica, Arial, sans; font-size: 32pt; font-weight: bold; text-align: center} date { font-family: New York, Times New Roman, serif; font-size: 24pt; background-color: white; color: green; display: block } author { font-family: New York, Times New Roman, serif; font-size: 14pt; color: black; content { font-family: courier; color: blue }

Article.xml 1 <?xml version = "1.0"?> 2 3 <!-- Fig. 20.1: article.xml --> 4 <!-- Article structured with XML --> 5 <?xml-stylesheet type="text/css" href="article.xsl"?> 6 <article> 7 8 <title>Simple XML</title> 9 10 <date>September 19, 2001</date> 11 12 <author> 13 <firstName>Tem</firstName> 14 <lastName>Nieto</lastName> 15 </author> 16 17 <summary>XML is pretty easy.</summary> 18 19 <content>Once you have mastered XHTML, XML is easily 20 learned. You must remember that XML is not for 21 displaying information but for managing information. 22 </content> 23 24 </article> Article.xml

Rendering XML documents using XSL “article.xsl” <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <html> <body> <h1> <font color="RED"> <xsl:value-of select="article"/> </font> </h1> </body> </html> </xsl:template> </xsl:stylesheet>

Create Markup XML permits document authors to create markup for virtually any type of information. This extensibility enables document authors to create entirely new markup languages for describing specific types of data, including mathematical formulas, chemical molecular structures, music, recipes, etc. Some XML-based markup languages include: XHTML (Chapters 4 and 5), MathML (for mathematics), VoiceXMLTM (for speech), SMILTM (Synchronous Multimedia Integration Language-for multimedia presentations), CML (Chemical Markup Language-for chemistry) and XBRL (Extensible Business Reporting Language-for financial data exchange).

Rendering: http://www.xml.com/style/ IE Amaya FO

XML Parser Processing an XML document requires a software program called an XML parser (or an XML processor). Most XML parsers are available at no charge and for a variety of programming languages (such as Java, python, C++, etc.). Parsers check an XML document's syntax and enable software programs to process marked-up data. XML parsers can support the Document Object Model (DOM) or the Simple API for XML (SAX).

DOM-based parsers DOM-based parsers build tree structures containing XML document data in memory. DOM-based parsers enable software programs to manipulate data in an XML document.

SAX-based parsers SAX-based parsers process XML documents and generate events when the parser encounters tags, text, comments, etc. These events contain data from the XML document. Software programs can "listen" for these events to obtain data from the XML document. Several Independent Software Vendors have developed XML parsers, which can be found at www.xml.com/xml/pub/Guide/XML_Parsers

XML document's structure An XML document optionally can reference a document that defines that XML document's structure. This document is either a Document Type Definition (DTD) or a schema. When an XML document references a DTD or schema, some parsers (called validating parsers) can read the DTD/schema and check that the XML document follows the structure that the DTD/schema defines. Parsers that cannot check for document conformity against DTD/schemas are nonvalidating parsers.

valid , nonvalid, well formed If the XML document conforms to the DTD/schema (i.e., the document has the appropriate structure), the XML document is valid. If the XML document does not conform to the DTD/schema, the XML document is nonvalid. If an XML parser (validating or non-validating) can process an XML document successfully, that XML document is well formed (i.e., it is syntactically correct). By definition, a valid XML document also is well-formed.

Microsoft XML Validator http://msdn.microsoft.com/archive/default.asp?url=/archive/en- us/samples/internet/xml/xml_validator/default.asp This sample web page allows you to enter in the URL of an XML document and both parse and validate that document.

CML Web based application – CML Molecules Viewer: http://www.xml-cml.org/jumbo3/jumbo3-JS/jumbo.html http://www.xml-cml.org/ http://www.xml-cml.org/jumbo3/jumbo3-JS/

SVG Scalable Vector Graphics (SVG) is an exciting new XML-based language for Web graphics from the World Wide Web Consortium (W3C). http://www.adobe.com/svg/ http://www.adobe.com/svg/demos/samples.html

XML Basics XML FAQ: http://www.ibiblio.org/xml/slides/sd99east/basics/ http://www.ucc.ie/xml/