What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.

Slides:



Advertisements
Similar presentations
Defining XML The Document Type Definition. Document Type Definition text syntax for defining –elements of XML –attributes (and possibly default values)
Advertisements

XML: text format Dr Andy Evans. Text-based data formats As data space has become cheaper, people have moved away from binary data formats. Text easier.
© De Montfort University, XML – a meta language Howell Istance and Peter Norris School of Computing De Montfort University.
History Leading to XHTML
Extensible Markup Language Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
A Technical Introduction to XML Transparency No. 1 XML quick References.
Java API for XML Processing (JAXP) CSE 4/586: Distributed Systems Department of Computer Science and Engineering University at Buffalo, New York Jia Zhao.
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.
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
COS 381 Day 14. Agenda Questions?? Resources Source Code Available for examples in Text Book in Blackboard
XML eXtensible Markup Language by Darrell Payne. Experience Logicon / Sterling Federal C, C++, JavaScript/Jscript, Shell Script, Perl XML Training XML.
1 XML at a neighborhood university near you Innovation 2005 September 16, 2005 Kwok-Bun Yue University of Houston-Clear Lake.
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.
XML - DTD. The building blocks of XML documents Elements, Tags, Attributes, Entities, PCDATA, and CDATA.
XML What is XML? XML v.s. HTML XML Components Well-formed and Valid Document Type Definition (DTD) Extensible Style Language (XSL) SAX and DOM.
XML – 1h. XML: Contents What is XML? What is “Well Formed” XML? What is “Valid” XML? –Document Type Definitions –Scalable Vector Graphics (SVG) XML in.
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.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
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.
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,
1 Tutorial 13 Validating Documents with DTDs Working with Document Type Definitions.
10/15/20151 XML. 10/15/20152 Mark-up Languages Digitalizing information Content Format SGML HTML XML RDF OWL …
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
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 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
School of Computing and Information Systems CS 371 Web Application Programming XML and JSON Encoding Data.
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
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.
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 – A Quick Introduction Kerry Raymond (stolen from others)
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
C# and Windows Programming XML Processing. 2 Contents Markup XML DTDs XML Parsers DOM.
Introduction to XML February 07, From HTML to XML As mentioned in previous classes, if you know HTML, then you already know XML… really! In this.
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.
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… XML Syntax v2.0.
Well Formed XML The basics. A Simple XML Document Smith Alice.
When we create.rtf document apart from saving the actual info the tool saves additional info like start of a paragraph, bold, size of the font.. Etc. This.
Introduction to DTD A Document Type Definition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
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.
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:
XML 1.Introduction to XML 2.Document Type Definition (DTD) 3.XML Parser 4.Example: CGI Gateway to XML Middleware.
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.
X M L Extensible Markup Language It is a cross platform tool or a language to achieve data transfer between the cross platform. Note  1.XML is not a replacement.
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.
Unit 4 Representing Web Data: XML
X M L Extensible Markup Language
Java XML IS
The XML Language.
Chapter 7 Representing Web Data: XML
Web Programming Maymester 2004
CS 240 – Advanced Programming Concepts
Allyson Falkner Spokane County ISD
Presentation transcript:

What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized Markup Language) Mechanism to identify structures in a document Mechanism to identify structures in a document Markup language for documents containing structured information Markup language for documents containing structured information Self-Descriptive Self-Descriptive Buzz Word Buzz Word

XML and HTML Similar in nature Similar in nature Labels Labels Elements Elements plus content plus content Reference Specification Reference Specification WWW consortium (W3C) WWW consortium (W3C) HTML transitional HTML transitional XHTML XHTML XML 1.0 XML 1.0

XML Document Structure Declaration Declaration Elements Elements Attributes Attributes Character Data Character Data Processing Instructions Processing Instructions Comments Comments Entity References Entity References

Declaration Start of the file Start of the file Optional Optional Future proof Future proof

Elements <Report> XML Report </Report> Highest level termed as the root element Highest level termed as the root element Contains: Contains: Start tag Start tag Some Content Some Content End tag End tag

Attributes XML Report </Report> Contains: Contains: Name Name Value Value

Character Data XML Report XML Report</Report> Element Content Element Content Special Symbols Special Symbols ‘&’ and ‘<‘ ‘&’ and ‘<‘ See Entity References See Entity References

Comments

Entity References EntityCharacter << >> && &apos;‘ "“

Processing Instructions Show a processing instruction at the appropriate place in the node tree (DOM) Show a processing instruction at the appropriate place in the node tree (DOM) Firing a processing instruction event (SAX) Firing a processing instruction event (SAX)

Well-Formed XML Tags must be nested properly Tags must be nested properly All start tags must have end tags All start tags must have end tags Use quotation marks properly for tag attributes Use quotation marks properly for tag attributes Use entity references Use entity references

Document Type Definition Set of rules Set of rules May be included in the document itself May be included in the document itself May be linked externally May be linked externally Confirming to a DTD Confirming to a DTD Well-formed Well-formed valid valid

Document Type Definition *<!DOCTYPE rootElementName [ …insert declarations here… ]> * * *<!ATTLIST element name (value1|value2)

XML Parsing Document Object Model (DOM) Document Object Model (DOM) Simple API for XML (SAX) Simple API for XML (SAX)

Document Object Model (DOM) Document Model driven Document Model driven Build a tree model of the elements in the document Build a tree model of the elements in the document Allow for application to access the tree Allow for application to access the tree DOM XML parser DOM XML parser Converts XML documents into Java Tree object model Converts XML documents into Java Tree object model

Simple API for XML (SAX) Event driven Event driven SAX XML parser processes elements serially SAX XML parser processes elements serially XML application provides callback functions to handle elements XML application provides callback functions to handle elements

Freely Available XML Parsers Apache Software Foundation Xerces XML Parser (xml.apache.org) Apache Software Foundation Xerces XML Parser (xml.apache.org) Open source Open source Oracle XML Parser Version 2 ( Oracle XML Parser Version 2 ( Must register Must register SAX2 Parser ( SAX2 Parser ( Freely available Freely available

References