XML Extensible Markup Language. What is XML? ● meta-markup language ● a language for defining a family of languages ● semantic/structured mark-up language.

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

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.
© De Montfort University, XML – a meta language Howell Istance and Peter Norris School of Computing De Montfort University.
XML 6.3 DTD 6. XML and DTDs A DTD (Document Type Definition) describes the structure of one or more XML documents. Specifically, a DTD describes:  Elements.
History Leading to XHTML
XML Document Type Definitions ( DTD ). 1.Introduction to DTD An XML document may have an optional DTD, which defines the document’s grammar. Since the.
Extensible Markup Language Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
XML Study-Session: Part II Validating XML Documents.
HTML and XHTML Controlling the Display Of Web Content.
Document Type Definitions
31 Signs That Technology Has Taken Over Your Life: #6. When you go into a computer store, you eavesdrop on a salesperson talking with customers -- and.
A Technical Introduction to XML Transparency No. 1 XML quick References.
Extensible Markup Language XML MIS 520 – Database Theory Fall 2001 (Day) Lecture 14.
Chapter 10 © 2001 by Addison Wesley Longman, Inc. 1 Chapter 10 Sebesta: Programming the World Wide Web.
Physical and Logical Structure
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
COS 381 Day 14. Agenda Questions?? Resources Source Code Available for examples in Text Book in Blackboard
Document Type Definitions. XML and DTDs A DTD (Document Type Definition) describes the structure of one or more XML documents. Specifically, a DTD describes:
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation Document Type Definition.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 XML Taken from Chapter 7.
XML and friends Part 1 - XML and DTD ELAG 2001 workshop 8 Jan Erik Kofoed © BIBSYS Library Automation.
XML CPSC 315 – Programming Studio Fall 2008 Project 3, Lecture 1.
Document Type Definitions Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
XML - DTD. The building blocks of XML documents Elements, Tags, Attributes, Entities, PCDATA, and CDATA.
E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language)  XML is a markup language for creating documents containing structured information.
Introduction to XML. What is XML? Extensible Markup Language XML Easier-to-use subset of SGML (Standard Generalized Markup Language) XML is a.
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 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.
XML (2) DTD Sungchul Hong.
1 Tutorial 13 Validating Documents with DTDs Working with Document Type Definitions.
Avoid using attributes? Some of the problems using attributes: Attributes cannot contain multiple values (child elements can) Attributes are not easily.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
XML - DTD Week 4 Anthony Borquez. What can XML do? provides an application independent way of sharing data. independent groups of people can agree to.
CIS 451: XML DTDs Dr. Ralph D. Westfall February, 2009.
SNU OOPSLA Lab. XML Documents 1 : Structure The ubiquitous XML(2) © copyright 2001 SNU OOPSLA Lab.
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.
Appendix C: Brief Overview of XML. ©SoftMoore ConsultingSlide 2 What is XML? The eXtensible Markup Language (XML) is a meta-markup language; i.e., a language.
Lecture 16 Introduction to XML Boriana Koleva Room: C54
2 XML Syntax XML Document Structure August 15, :00 Darmstadt Hessen Germany fine 25 SW 6 Markup Content.
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.
1 Dr Alexiei Dingli XML Technologies DTD. 2 Document Type Definition Defines –the legal building blocks of an XML document –the document structure –The.
The eXtensible Markup Language (XML). Presentation Outline Part 1: The basics of creating an XML document Part 2: Developing constraints for a well formed.
CSE3201 Information Retrieval Systems DTD Document Type Definition.
Document Type Definitions (DTD) A Document Type Definition (DTD) defines the structure and the legal elements and attributes of an XML document. A DTD.
INFSY 547: WEB-Based Technologies Gayle J Yaverbaum, PhD Professor of Information Systems Penn State Harrisburg.
SNU OOPSLA Lab. Logical structure © copyright 2001 SNU OOPSLA Lab.
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.
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.
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.
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.
Unit 3 — Advanced Internet Technologies Lesson 10 — Introduction to XHTML.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
DTDs© Aptech Limited DTDs 03. DTDs© Aptech LimitedDTDs© Aptech Limited Document Type Definition  In this first lesson, Document Type Definition, you.
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.
Extensible Markup Language (XML) Pat Morin COMP 2405.
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.
CSCE 315 – Programming Studio Spring 2013
Web Programming Maymester 2004
CSE591: Data Mining by H. Liu
Allyson Falkner Spokane County ISD
Presentation transcript:

XML Extensible Markup Language

What is XML? ● meta-markup language ● a language for defining a family of languages ● semantic/structured mark-up language – defines structure and meaning, NOT formatting or presentation

Why XML? ● supports construction of domain specific markup languages ● creates a common data format ● facilitates data interchange ● structures large, complex documents

History ● Standard Generalized Markup Language (SGML) – too complex ● Hyper-Text Markup Language (HTML) – not extensible, limited to small set of fixed tags – polluted with non-semantic tags (e.g.,, and the dreaded ● XML working group formed in 1996 ● XML is really a slimmed down SGML

XML Applications ● Chemical Markup Language (CML) – originaly a SGML application – used to describe: molecular structures and sequences, spectrographic analysis, crystallography, chemical databases, and so on ● Mathematical Markup Language (MathML) – adequate for almost all: education, scientific, engineering, business, economics, and statistics needs – limited for advances math/theoretical physics

MathML example a b 2 (a+b) 2

XML Document “Goodness” ● well-formed – satisfies the basic rules of XML syntax ● valid – satisifes the domain specific rules for the language as definded in the Document Type Definintion (DTD)

Well-formed 1.Must start with an XML declaratoin 2.Elements with content must contain matching start and end tags 3.Empty elements must end with /> 4.The document must contain exactly one element that contains all other elements 5.Elements may nest but not overlap

XML Declaration – standalone – yes if this file contains a complete document

Tags ● anything that begins with ● end tags begin with </ ● empty tags end with /> ● tag names – start with letter or underscore (_) – remianing characters can be letters, numbers, _, hyphens or periods

Attributes ● start tags can include zero or more attributes ● attributes are name/value pairs separated by and equals sign (=) ● the rules for attribute names are the same as for tag names ● the value is any string enclosed in quotes (single or double) ● if the sting contains quotes entity references must be used: &apos; or "

Comments ● can't be nested or contained inside start/end tags

Entity References && << >> "“ &apos;'

CDATA ● used for content that resembles XML: <![CDATA[ Hello! ]]>

Valid Documents ● body matches Document Type Definition (DTD)

DTDs <!DOCTYPE greeting [ ]> Hello!

ELEMENTs ● name follwowed pattern ● pattern is similar to a regular expression

ATTLIST ● specifies attributes for a tag

Internal Document Type <!DOCTYPE root_element_name [ declarations ]> <!DOCTYPE greeting [ ]>

External Document Type (System) <!DOCTYPE root_element_name SYSTEM DTD_URL> <!DOCTYPE greeting SYSTEM “ >

External Document Type (Public) <!DOCTYPE root_element_name PUBLIC DTD_name DTD_URL>

Internal General Entity... THE END &bkc;

Internal Parameter Entity...

ELEMENTs

ELEMENT content_type ● ANY – anything ● #PCDATA – only character data – no contained elements ● EMPTY – element contains no content ● reg_exp – a regular expression denoting acceptable children

Regular expressions ● element_name ● re+1 or more ● re*0 or more ● re?0 or 1 ● (re1 | re2 |... | reN )re1 or re2... or reN ● (re1, re2,..., reN )re1 followed by re2,... reN

XHTML head element ● what is the declaration for the XHTML “head” element: – must contain exactly one “title” element – may contain at most one “base” element – may contain 0 or more “meta” elements – title, base, and meta elements can appear in any order

ATTLISTs <!ATTLIST element_name attribute_name type “default value”>