SNU OOPSLA Lab. A Tour of XML © copyright 2001 SNU OOPSLA Lab.

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

DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
XML/EDI Overview West Chester Electronic Commerce Resource Center (ECRC)
XML and Enterprise Computing. What is XML? Stands for “Extensible Markup Language” –similar to SGML and HTML –document “tags” are used to define content.
HTML and XHTML Controlling the Display Of Web Content.
Extensible Markup Language XML MIS 520 – Database Theory Fall 2001 (Day) Lecture 14.
XML: New or Old? XML was not an extention of HTML That already existed! SGML (ISO 8879) XML was a simplification of SGML  80 / 20 rule  (80% of the features.
Tutorial 11 Creating XML Document
XML Introduction By Hongming Yu Feb 6 th, Index Markup Language: SGML, HTML, XML An XML example Why is XML important XML introduction XML applications.
Introduction to XML Rashmi Kukanur. XML XML stands for Extensible Markup Language XML was designed to carry data XML and HTML designed with different.
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.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 XML Taken from Chapter 7.
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.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
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.
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.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
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.
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.
SNU OOPSLA Lab. XML Documents 1 : Structure The ubiquitous XML(2) © copyright 2001 SNU OOPSLA Lab.
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.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
Lecture 16 Introduction to XML Boriana Koleva Room: C54
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.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
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 Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
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.
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.
Introduction to XML XML – Extensible Markup Language.
SNU OOPSLA Lab. Hypertext links(XLL) © copyright 2001 SNU OOPSLA Lab.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
XML The Extensible Markup Language (XML ), which is comparable to SGML and modeled on it, describes how to describe a collection of data. A standard way.
Games: XML Presented by: Idham bin Mat Desa Mohd Sharizal bin Hamzah Mohd Radzuan bin Mohd Shaari Shukor bin Nordin.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 2: Markup Language and Site Development Essentials © 2007 Prosoft Learning Corporation All.
XML SNU OOPSLA Lab. October Contents  Semistructured Data  Introduction  History  XML Application  DTD & XML Schema  DOM & SAX  Summary.
Working with XML. Markup Languages Text-based languages based on SGML Text-based languages based on SGML SGML = Standard Generalized Markup Language SGML.
SNU OOPSLA Lab. XML Documents 2 : Additional issues The ubiquitous XML(3) © copyright 2001 SNU OOPSLA Lab.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
HTML is about making documents. Simple Code for Simple Layout My Document This is an example HTML document First paragraph Second paragraph This is the.
XML Databases Presented By: Pardeep MT15042 Anurag Goel MT15006.
Extensible Markup Language (XML) Pat Morin COMP 2405.
Introduction to XHTML.
Creating an XML Document
Introducing HTML & XHTML:
XML Introduction By Hongming Yu Feb 6th, 2002.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
CSE591: Data Mining by H. Liu
Allyson Falkner Spokane County ISD
Review of XML IST 421 Spring 2004 Lecture 5.
Unit 6 - XML Transformations
Presentation transcript:

SNU OOPSLA Lab. A Tour of XML © copyright 2001 SNU OOPSLA Lab.

SNU OOPSLA Lab. Table of Contents What is XML ? The Origin of XML Elements and Attributes What is the DTD? Hypertext Links Document Formatting

SNU OOPSLA Lab. What is XML ? - 1 An acronym for ‘eXtensible Markup Language’ A meta-language that describes other languages A data format for storing structured and semi- structured text for dissemination and ultimate publication, perhaps on a variety of media

SNU OOPSLA Lab. What is XML ? - 2 Properties –tags enclose identifiable parts of the document –self-describing –physical/logical structure physical structure : allows components of the document, called entities logical structure : allows a document to be divided into named units and sub- units, called elements

SNU OOPSLA Lab. Sub-unit Unit Document elements Logical Structure entities (internal) (separate) Physical Structure

SNU OOPSLA Lab. This substance if hazardous to health See procedure 12A. 7 for information on protective clothing required. XML markup

SNU OOPSLA Lab. What is XML ? - 3 –DTD(Document Type Definition) define the elements allowed in a particular type of document a parser uses it to check the validity of documents –style sheet used to specify an output format for each element

SNU OOPSLA Lab. The Origin of XML GMInternet WWW SGML HTML XML GM = Generalized Markup

SNU OOPSLA Lab. Applications Data exchange applications –identified domain : XML-EDI –general meta-data part : MCF, XML-Data, RDF Document publishing applications

SNU OOPSLA Lab. ASCII / ISO / UnicodeTCP/IP HTTPXMLCSSSPDL XLLXSL Complex document layout Simple document layout Web publishing Interactive publishing Page layout

SNU OOPSLA Lab. Elements - 1 An element consists of a start tag, an end tag, and data –e.g.) Are you going to Scarborough failr ? Element names are case-sensitive Some hierarchical structures may be recursive

SNU OOPSLA Lab. Elements - 2 Content types –element content an element that does not directly contain text, but contains other elements –mixed content an element that contains a mixture of elements and text –data content an element that happens to contain only text –empty element an element that may not be allowed to contain data

SNU OOPSLA Lab. … This paragraph contains an emphasized phrases in the middle. This paragraph contains a figure here. … element content mixed content data content empty element

SNU OOPSLA Lab. Attributes Provides refined information about an element Embedded in the element start-tag Consists of an attribute name and an attribute value –value is enclosed by quotes –name and value are case-sensitive

SNU OOPSLA Lab. Reserved Attributes - 1 Languages –‘xml:lang’ is reserved for storage of both language and country details e.g.) … –sub-code specify a country code e.g.) …

SNU OOPSLA Lab. Reserved Attributes - 2 Significant spaces –‘xml:space’ is reserved for distinguish space characters in elements that contain other elements from spaces in elements that contain text possible values : ‘default’, ‘preserve’

SNU OOPSLA Lab. Declarations Contain instructions to the XML processor Delimited by ‘ ’ Types of declarations –document type declaration e.g.) –comments e.g.> –character data sections >> button.]]> –XML declaration

SNU OOPSLA Lab. Concepts of DTD(1) DTD(Document Type Definition) –An optional but powerful feature of XML –Comprises a set of declarations that define a document structure tree –Some XML processors read the DTD and use it to build the document model in memory –Establishes formal document structure rules It define the elements and dictates where they may be applied in relation to each other

SNU OOPSLA Lab. Concepts of DTD(2) Declare Vs. Define –Declare  “This document is a concert poster” –Define  “A concert poster must have the following features” DTD define –Element type + Attribute + Entities Valid Vs. Invalid –Valid  conforms to DTD –Invalid  fail to conform to DTD Well formed XML Document Valid XML Document

SNU OOPSLA Lab. Hypertext Links(XLL) - 1 Terminology –resource target object –linking element source –traversal the act of moving from the liking element to the resource

SNU OOPSLA Lab. Hypertext Links(XLL) - 2 Simple link & Extended link –simple link the primitive one-directional linking scheme, but make it possible to traverse links between documents –Extended link resources can be cross-related an extended link contains a number of locator elements, each one points to a resource

SNU OOPSLA Lab. Hypertext Links(XLL) - 3 Attributes in the linking element can influence –the means by which a link can be activated a link could be activated by the person(‘user’ link) directly by the application(‘auto’ link) –the presentation technique required once it has been activated application may jump to the specified resource(‘replace’) display the resource in another window(‘new’) insert the resource into the original text(‘embed’)