XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.

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

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.
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.
History Leading to XHTML
Tutorial 9 Working with XHTML
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Chapter 10 © 2001 by Addison Wesley Longman, Inc. 1 Chapter 10 Sebesta: Programming the World Wide Web.
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
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.
XP New Perspectives on XML Tutorial 3 1 DTD Tutorial – Carey ISBN
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
XP Tutorial 9New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
XML CPSC 315 – Programming Studio Fall 2008 Project 3, Lecture 1.
School of Computing and Management Sciences © Sheffield Hallam University To understand the Oracle XML notes you need to have an understanding of all these.
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.
Document Type Definitions Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
MIS 315 Bsharah An Introduction to XML 1MIS Bsharah.
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.
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.
TEXT ENCODING INITIATIVE (TEI) Inf 384C Block II, Module C.
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.
FIGIS’ML Hands-on training - © FAO/FIGIS An introduction to XML Objectives : –what is XML? –XML and HTML –XML documents structure well-formedness.
EXtensible Markup Language (XML) and Documentation --ManojBokil -- Manoj Bokil.
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.
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
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 Labels and Tags October 14, Grammar A set of components and rules that define a method/means of communication among objects. Components are.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language  XML is a markup language for creating documents containing structured information.
Copyrighted material John Tullis 10/17/2015 page 1 04/15/00 XML Part 3 John Tullis DePaul Instructor
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
CP3024 Lecture 9 XML: Extensible Markup Language.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
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.
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 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.
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.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
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.
Representing data with XML SE-2030 Dr. Mark L. Hornick 1.
SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson LIS1510 Library and Archives Automation Issues XML and extensible systems Andy Dawson School.
XML Technology. Emerging Importance of XML –HTML-tagging is display oriented. –XML-based content tagging has important uses: data mining role-oriented.
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.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
Connecting to External Data. Financial data can be obtained from a number of different data sources.
Kynn Bartlett 11 April 2001 STC San Diego The HTML Writers Guild Copyright © 2001 XML, XHTML, XSLT, and other X-named specifications.
Extensible Markup Language (XML) Pat Morin COMP 2405.
Unit 4 Representing Web Data: XML
Tutorial 9 Working with XHTML
XML QUESTIONS AND ANSWERS
Chapter 7 Representing Web Data: XML
Creating an XML Document
CSE591: Data Mining by H. Liu
Presentation transcript:

XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault

XML HISTORY Developed by work group, under authority of the W3C First seen in 1996, and standardized by the W3C in 1998 Simplified dialect of the SGML

SGML "Standard Generalized Markup Language" A method for creating interchangeable, structured documents Standardized in 1986 (ISO8879:1986) Can assemble a single document from many sources Defines a document structure using a special grammar called a Document Type Definition Adds markup to show the structural units in a document

HTML vs XML vs SGML HTML is an SGML application (a DTD and set of processing conventions) –As such it’s much more limited than SGML and XML –It’s easy to learn SGML is the mother of XML and HTML –It’s complicated – hundreds of pages in it’s definition –It has many extraneous features that aren’t needed on the web

HTML vs XML vs SGML II XML is a subset of SGML –Valid SGML –Only uses the parts that are useful on the web –Requires more syntax checking than HTML –Is extendable like SGML –Has a small definition (25 pages) –Easy to learn

How do I execute or run an XML file? You can't and you don't. XML is not a programming language, so XML files don't ‘run’ or ‘execute’. XML is a markup specification language and XML files are data.

Constructing your own XML You must supply a Document Type Definition What is a Document Type Definition (DTD)? A context-free grammar like Extended BNF Provides the rules that define the elements and structure of your new language Thousands of SGML DTDs already in existence SGML DTDs need to be converted to XML for use with XML systems

How is a DTD implemented? A DTD is a file (or several files to be used together), written in XML's Declaration Syntax It contains a formal description of a particular type of document It sets out what names can be used for element types, where they may occur, and how they all fit together Any browser (or application) with an XML parser could interpret an XML document instance by "learning" the rules defined by the DTD.

Defining the structure & Semantics of XML XML structure is defined in a schema Defines shared markup vocabularies Provide a means for defining the structure, content and semantics of XML Introduces new levels of flexibility that may accelerate the adoption of XML for significant industrial use

Schemas Schemas support inheritance and overriding old values Schemas are not yet a formal Recommendation, but a number of sites are starting to serve useful applications as both DTDs and Schemas

An XML example Example: Elements and Attributes This group of elements, attributes describe the contents of an address book. It includes a DTD which describes how all of the pieces work as XML. Jack Smith

Required 1.The XML Declaration This is what tells an XML parser that the document is XML 2.XML Declaration w/ character set

Basic Syntax All tags must be closed The exception is an empty tag (i.e. ) All nested tags must close before the tag they are nested in All attributes must have quotes Case sensitive

Tags and DTD The DTD describes every object that can appear in the document An example section of a DTD is: This is an entry that says the element is composed of one or more elements.

Optional modifiers for the entries: 1.No modifier: Object appears once and only once in the element 2.+: Object appears at least once and can be repeated 3.*: Object appears zero or more times 4.?: Object appears zero or one times

Elements composed of multiple entries An element can be composed of multiple entries, for example an entry in the address book has: a name, phone number, and Inside the parentheses are the elements that make up entry these can take the forms: (e1, e2): These elements will appear once each in order e1 e2 (e1 | e2): One of these elements will appear (either or) These can be combined as in: –(e1, (e2 | e3) )

Attributes of Elements Some elements have attributes, which are part of their data description. An attribute has: –The attribute tag opening: <!ATTLIST –The name of the element it belongs to: –The attribute name: href –The attribute type: CDATA –Optionally a default value: #REQUIRED –The close bracket: >

Attributes of Elements II There can be more than one attribute listed in one attribute tag:

Referencing the DTD A DTD is referenced in the document using it with the tag:

Referencing the DTD II The section of the tag: SYSTEM "address- book.dtd"> Can be replaced with or followed by a [ and the actual DTD as in: <!DOCTYPE name [ ]>

Viewing the XML: XSL Because XML is just for describing data it isn’t inherently displayed in a particular way by a browser. XSL allows how things are displayed to be specified XSLT transforms the data into new forms XSLFO allows the style of the objects to be set A similar thing to XLSO which is more supported is CSS

Uses of XML 1.intelligent agents - content personalization via smart pull/push (possibly with a date-stamped XML repository) 2.structured records (purchase order) object with methods and data (Java, and potentially JavaScript) 3.meta-content about your web site (improves searches) query results 4.graphical user interface of an application 5.persistent storage format (e.g. ODBMS- powered XML repository)

Uses of XML II 6.electronic service manuals 7.online process/procedures documentation 8.EDI (electronic data interchange) - mapping data between purchasing and inventory departments of same or different companies

References most informative site: Also: XML for Dummies XML by Example by Que