Hope Greenberg Center for Teaching & Learning

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.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
History Leading to XHTML
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
Tutorial 9 Working with XHTML
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Tutorial 11 Creating XML Document
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
Introduction to XML: Yong Choi CSU Bakersfield.
XML: What, Why, When & How? Hope Greenberg Center for Teaching & Learning June 11 & 18.
XML Basics Hope Greenberg Center for Teaching & Learning.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
XP The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 140 Internet Tools Instructor: Enoch E. Damson.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
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.
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
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.
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
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 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation An Introduction to XML.
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 –
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.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
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.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
Jennifer Widom XML Data Introduction, Well-formed XML.
Well Formed XML The basics. A Simple XML Document Smith Alice.
XML DTD. XML Validation XML with correct syntax is "Well Formed" XML. XML validated against a DTD is "Valid" XML.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
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:
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
XML Introduction to XML Extensible Markup Language.
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 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.
Web Basics: HTML/CSS/JavaScript What are they?
Unit 4 Representing Web Data: XML
Tutorial 9 Working with XHTML
Tutorial 9 Working with XHTML
Introduction to HTML.
Coding, Testing and Valdating a Web Page
Well-formed and Valid XML Documents
The XML Language.
Chapter 7 Representing Web Data: XML
Creating an XML Document
Tutorial 9 Working with XHTML
XML Data Introduction, Well-formed XML.
CSE591: Data Mining by H. Liu
Allyson Falkner Spokane County ISD
Document Type Definition (DTD)
Review of XML IST 421 Spring 2004 Lecture 5.
XML IST 421.
Extensible Markup Language (XML)
Presentation transcript:

Hope Greenberg Center for Teaching & Learning XML Basics Hope Greenberg Center for Teaching & Learning

XML: What, Why, When and How What is HTML? A set of markup tags for encoding elements of web documents. Encoding is the addition of codes to text in order to make it possible for a computer to process that text. Interpretation of elements is built into a web browser, helped by CSS. Presentational (sort of) not semantic. Looks like: <p>Hello world.</p> <p class=“green”>Hello world.</p>

What is XML? A markup language for describing structured documents. XML: What, Why, When and How What is XML? A markup language for describing structured documents. Allows for creation of elements based on need. Designed to be semantic (meaning is separate from presentation). Looks like: <p>Hello world.</p> But can also look like: <para>Hello world.</para>

What is the TEI? Text Encoding Initiative founded in 1987. XML: What, Why, When and How What is the TEI? Text Encoding Initiative founded in 1987. Guidelines for encoding machine-readable texts in the humanities and social sciences. Includes standardized ways to mark up a document’s semantics.

Why use the TEI? With HTML you could do this: XML: What, Why, When and How Why use the TEI? With HTML you could do this: <p>Enter KING.</p> <p>Queen.</p> <p> Alas, look here, my lord.</p> <p> Ophelia speaks </p> <p> Oph.</p> <p>Song.</p> <p>Larded all with sweet flowers,</p>

Why use the TEI? With CSS you could add some classification: XML: What, Why, When and How Why use the TEI? With CSS you could add some classification: <p.stage>Enter KING.</p> <p.speaker>Queen.</p> <p.speech> Alas, look here, my lord.</p> <p.stage> Ophelia speaks </p> and then tell the CSS to make each class LOOK different.

Why use the TEI? <stage>Enter KING.</stage> XML: What, Why, When and How Why use the TEI? <stage>Enter KING.</stage> <sp who="Queen” type=“female”> <speaker >Queen.</speaker> <l n="37" part="Y"> Alas, look here, my lord.</l> </sp> <sp who="Oph” type=“female”> <speaker>Ophelia</speaker> <stage>Song. </stage> <l n="38"> Larded all with sweet flowers,</l>

Extracting the Information XML: What, Why, When and How Extracting the Information For all speeches where type=“female” list speaker and speech For all speeches where type=“Queen” list by line number Select and print all stage directions by act and scene

XML: The Pieces XML: What, Why, When and How css web xhtml.xsl XML File print.xsl mobil.xsl Mobil device Schema/DTD Parser

XML File: The Pieces Declaration (what am I?) XML: What, Why, When and How XML File: The Pieces Declaration (what am I?) Processing Instructions (what will you do with me?) Elements (what am I made of?) (tag, attributes, content: PCDATA) Entities (what else do we need?) Character, files, Comments (secret messages) CDATA (just like this or else…)

XML File: The Pieces Declaration Processing instruction XML: What, Why, When and How XML File: The Pieces Declaration <?xml version=“1.0” encoding=“UTF-16” standalone=“yes”> Processing instruction <?xml-stylesheet href=“classic.xsl” type=“text/xml”?>

XML File: The Pieces Elements <p>Hello World!</p> XML: What, Why, When and How XML File: The Pieces Elements (tag, attributes, content: PCDATA) <p>Hello World!</p> <p type=“cliched”>Hello World!</p> Entities Character & & & Text or other: external <!ENTITY lady SYSTEM “http://www.uvm.edu/~hag/lady.jpeg NDATA jpeg><figure entity=“lady”></figure>

XML File: Some Rules XML documents use a self-describing syntax. XML: What, Why, When and How XML File: Some Rules XML documents use a self-describing syntax. XML tags are case sensitive. All XML elements must have a closing tag. All XML elements must be properly nested. All XML documents must have a root element. Attribute values must always be quoted.