XML: What, Why, When & How? Hope Greenberg Center for Teaching & Learning June 11 & 18.

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
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.
 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
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
Chapter 10 © 2001 by Addison Wesley Longman, Inc. 1 Chapter 10 Sebesta: Programming the World Wide Web.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
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
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
XML Basics Hope Greenberg Center for Teaching & Learning.
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
EAD: A Technical Introduction Julie Hardesty, Metadata Analyst June 3, 2014.
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.
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.
XML eXtensible Markup Language by Darrell Payne. Experience Logicon / Sterling Federal C, C++, JavaScript/Jscript, Shell Script, Perl XML Training XML.
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 What is XML? XML v.s. HTML XML Components Well-formed and Valid Document Type Definition (DTD) Extensible Style Language (XSL) SAX and DOM.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
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 Extensible Markup Language. What is XML? ● meta-markup language ● a language for defining a family of languages ● semantic/structured mark-up language.
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.
 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,
Session IV Chapter 9 – XML Schemas
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
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.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
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.
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.
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.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
INFSY 547: WEB-Based Technologies Gayle J Yaverbaum, PhD Professor of Information Systems Penn State Harrisburg.
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 –
Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
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.
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.
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
Hope Greenberg Center for Teaching & Learning
Chapter 7 Representing Web Data: XML
Allyson Falkner Spokane County ISD
Presentation transcript:

XML: What, Why, When & How? Hope Greenberg Center for Teaching & Learning June 11 & 18

The Plan Day One: –Introduction/history –XML: The bits and pieces –Working with XHTML –Roll our own Day Two: –Alphabet soup: DTDs, Stylesheets, XSL, XSLT, XPATH, XPOINTER XML: What, Why, When and How

A Little History Pretty Docs –Word Processors –Desktop Publishing Massive Docs –Mass Mailings –Technical Manuals Web Docs –Hypertext across the Internet XML: What, Why, When and How

A Little History SGML –Goldfarb, Mosher and Lorie, IBM 1970s –ISO 8879 in 1986 –Standard Generalized Markup Language A structural markup language for text documents …but then came the web… XML: What, Why, When and How

SGML/XML: What Mark up the structure Document determines mark up Separate content from presentation “Applications”: TEI, DOCBOOK, SMIL, (see Robin Cover for more) and the most popular is… XML: What, Why, When and How

XML: What 90% of the functionality, 10% of the size A small subset of SGML Designed with the web in mind For the developer: fewer rules For the user: a few more rules and all that software…or not… XML: What, Why, When and How

XML: The Pieces An xml file –Well-formed –Valid Parser DTD/Schema Stylesheet(s) XML: What, Why, When and How

XML: The Pieces XML: What, Why, When and How XML File Parser xhtml.xsl print.xsl pda.xsl web pda

XML File: The Pieces Declaration Processing Instructions Elements –(tag, attributes, content: PCDATA) Entities –Character, files, Comments CDATA XML: What, Why, When and How

XML File: The Pieces Declaration XML: What, Why, When and How

XML File: The Pieces Processing Instructions XML: What, Why, When and How

XML File: The Pieces Elements (tag, attributes, content: PCDATA) Hello World! How are you? XML: What, Why, When and How

XML File: The Pieces Entities –Character & Þ –Text: internal &copyright; –Text or other: external XML: What, Why, When and How

XML File: The Pieces Comments CDATA >> & >]] XML: What, Why, When and How

Sample Well-Formed XHTML Document Sample Well-Formed XHTML Note that this document is not intended to be validated, so it has no Declaration. However, in order to be well-formed it does need to follow all the XML rules, so: all elements will have lower case tags, all tags will be closed, ALL tags must be nested properly, entity references are expressed properly: & and all attribute values will be in quotes, like this:

Sample Valid XHTML Document Sample Valid XHTML Note this document is intended to be validated, so it has a Declaration. It still needs to follow all the XML rules, so: all elements will have lower case tags, all tags will be closed, ALL tags must be nested properly, entity references are expressed properly: & and all attribute values will be in quotes, like this: &copyright;

XHTML: Clean-up Time Let’s look at: Open Oxygen, and open hale.html Check for well-formedness Fix the errors, save, select, copy Open new file, choose xhtml-strict.dtd Paste in copied text Now validate and fix errors XML: What, Why, When and How

XHTML File: Some Rules All XML documents must have a single root element. XML tags are case sensitive. All XML elements must have a closing tag. or All XML elements must be properly nested. Attribute values must always be quoted. Valid files must have a DOCTYPE declaration. Valid files can only contain the elements and entities specified in the DTD/Schema. XML: What, Why, When and How

XML: Roll our own Consider the traditional memo: MEMORANDUM To: Jan Smith From: Kay Jones Subject: XML Class Date: June 11, 2003 We’re looking forward to our class at 9:30. Bring your own laptop if you would like to. Just be sure you have downloaded and installed Oxygen. XML: What, Why, When and How

XML: Roll our own Party Invitation (both sides) Recipe (with sidebar info) Play (consider special print) 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. and think about what information you want to capture as well as how stylesheets might determine your choices XML: What, Why, When and How