CSU - DCE 0706 - Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC XML Core Concepts or Some Gory Details Instructor:

Slides:



Advertisements
Similar presentations
Introduction to the Logical Structure of XML Documents Web Engineering, SS 2007 Tomáš Pitner, Michael Derntl.
Advertisements

XML: text format Dr Andy Evans. Text-based data formats As data space has become cheaper, people have moved away from binary data formats. Text easier.
 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
XHTML1 Building Document Structure. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML) documents.
Introduction to XLink Transparency No. 1 XML Information Set W3C Recommendation 24 October 2001 (1stEdition) 4 February 2004 (2ndEdition) Cheng-Chia Chen.
A Technical Introduction to XML Transparency No. 1 XML quick References.
XML Why is XML so popular? –It’s flexible –It enables you to create your own documents with elements (tags) that you define Non-XML example: This is a.
 2002 Prentice Hall, Inc. All rights reserved. ISQA 407 XML/WML Winter 2002 Dr. Sergio Davalos.
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 Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
1 HTML’s Transition to XHTML. 2 XHTML is the next evolution of HTML Extensible HTML eXtensible based on XML (extensible markup language) XML like HTML.
Document Type Definitions. XML and DTDs A DTD (Document Type Definition) describes the structure of one or more XML documents. Specifically, a DTD describes:
Copyright © 2003 Pearson Education, Inc. Slide 2-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
XP New Perspectives on XML Tutorial 3 1 DTD Tutorial – Carey ISBN
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.
Session III Chapter 7 – Entities and Notation in DTD’s
 XHTML is aimed to replace HTML  XHTML is almost identical to HTML 4.01  XHTML is a stricter and cleaner version of HTML  XHTML is HTML defined as.
Using Embedded JavaScript Fort Collins, CO Copyright © XTR Systems, LLC Embedding JavaScript In HTML Instructor: Joseph DiVerdi, Ph.D., MBA.
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.
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
Introduction to CSS CSS Syntax - Fort Collins, CO Copyright © XTR Systems, LLC Cascading Style Sheets - Syntax & Semantics Instructor: Joseph DiVerdi,
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
Introduction. Document Structure Overview  XML declaration (prolog)  Document type declaration  Root element (namespace)  Document header  Document.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
August Chapter 2 - Markup and Core Concepts Learning XML by Erik T. Ray Slides were developed by Jack Davis College of Information Science and Technology.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML.
XP 1 DECLARING A DTD A DTD can be used to: –Ensure all required elements are present in the document –Prevent undefined elements from being used –Enforce.
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.
Understanding Linux Directories Fort Collins, CO Copyright © XTR Systems, LLC Understanding the Linux Directory Structure Instructor: Joseph DiVerdi, Ph.D.,
CSU - DCE Advanced Perl CGI Operation - Fort Collins, CO Copyright © XTR Systems, LLC Introduction to the Common Gateway Interface (CGI) on the.
 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,
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
1 Tutorial 13 Validating Documents with DTDs Working with Document Type Definitions.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI Document.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
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 Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
CSU - DCE Webmaster I HTML - Tables - Fort Collins, CO Copyright © XTR Systems, LLC Designing Web Sites using HTML - Introduction to Tables Instructor:
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
QUALITY CONTROL WITH SCHEMAS CSC1310 Fall BASIS CONCEPTS SchemaSchema is a pass-or-fail test for document Schema is a minimum set of requirements.
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.
Introduction to XML XML – Extensible Markup Language.
1 Internal DTD External DTD. 2 Internal DTD ]> Tove Jani Reminder Don't forget me this weekend.
Introduction of XML & XHTML Webmaster - Fort Collins, CO Copyright © XTR Systems, LLC Overview of XML & XHTML Instructor: Joseph DiVerdi, Ph.D., MBA.
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.
CSU - DCE Introduction to CSS CSS URLs - Fort Collins, CO Copyright © XTR Systems, LLC Cascading Style Sheets - Specifying URLs Instructor: Joseph.
XML CORE CSC1310 Fall XML DOCUMENT XML document XML document is a convenient way for parsers to archive data. In other words, it is a way to describe.
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.
JavaScript Syntax Fort Collins, CO Copyright © XTR Systems, LLC Introduction to JavaScript Syntax Instructor: Joseph DiVerdi, Ph.D., MBA.
Unit 4 Representing Web Data: XML
Tutorial 9 Working with XHTML
Tutorial 9 Working with XHTML
The XML Language.
Chapter 7 Representing Web Data: XML
Web Programming Maymester 2004
Tutorial 9 Working with XHTML
Allyson Falkner Spokane County ISD
Review of XML IST 421 Spring 2004 Lecture 5.
XML IST 421.
Presentation transcript:

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC XML Core Concepts or Some Gory Details Instructor: Joseph DiVerdi, Ph.D., M.B.A.

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Ground Rules XML Rules Differ From HTML Rules –Generally More Stringent Case is Significant Attributes Must be Contained in Quotes Whitespace is Not Collapsed Automatically Containers Must Always Be Closed

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Outline Anatomy of an XML-Compliant Document –Prolog –Elements Elements –Attributes Namespace Entities –Character –Mixed-Content Well-Formedness & Validity

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Document Anatomy XML-Compliant Document –A Reservoir of Information –Structured Data Two Separate Components –Prolog Provides Declarations to XML Software Applications –Elements Contains Marked-Up Data

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Document Prolog Contents –XML Declaration - required –Document Type Declaration - optional Not Document Type Definition Simplest XML Prolog –Only Contains XML Declaration –Note Unique Delimiters

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC XML Declaration Several Properties Available –Version version = "1.0" Identifies Rules of Engagement Only v1.0 Currently in Existence –Encoding encoding = "iso " Identifies Character Set Used in Document –Standalone standalone = "yes" Indicates Whether or Not Other Files Are Involved

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC XML Declaration Examples –Property Order is Not Important –Parameter Names are lower case –Values are Quoted –Properties are Space-Delimited

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Character Sets A Brief Digression...

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Character Sets Character –A Unit of a Written Language System ay, bee, see, dee, eff, gee, aych, eye Glyph –An Actual Printed or Displayed Character = a b c 5, $ ó

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Character Sets A Character May Associate With Several Glyphs –Close Quote - " or » A Glyph May Correspond to Several Characters –Comma - pause in sentence or decimal indicator In Certain Languages

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Character Sets Each Character is Assigned –A Specific Numeric Value Number of Characters in a Character Set –Limited by the Bit-Depth of its Encoding 8-Bit Encoded Character Set characters 16-Bit Encoded Character Set - 65,536 characters HTML v2.0 & v3.2 are based on ISO –8-Bit Character Set AKA Latin-1

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Character Sets ISO Character Set –8-Bit Depth First 128 Values From US-ASCII Numeric ValueGlyphDescription 13CRcarriage return 480digit zero 64Auppercase aye 94^caret 177±plus-or-minus 191¿inverted question mark 255ÿlowercase wye w/umlaut

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Character Sets (continued) Common 8-bit character sets ISO Latin-1 ISO Cyrillic ISO Arabic ISO Greek ISO Hebrew SHIFT_JISJapanese EUC_JPJapanese

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Uses of Character Sets LanguagesCountriesCharacter Sets Frenchfr iso Greekeliso Hebrewiwiso Hungarianhuiso Icelandicisiso Italianitiso Japanesejashift_jis, iso-2022-jp, euc-jp Romanianroiso Russianrukoi-8-r, iso Serbiansriso Slovakskiso Spanishesiso Turkishtriso Ukrainianukiso

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Character Sets (continued) 256 Characters are Sufficient –For Certain Languages Insufficient for Others –Japanese (kanji) –Chinese –Korean –Vietnamese Hence the Need For –16-Bit Encoded Character Sets

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Character Sets 16-Bit Encoded Character Sets –Two Contiguous Bytes Represent One Character 65,536 Possible Characters in One Set –Unicode is a 16-bit Character Set Developed by the Unicode Consortium –Practically Identical to ISO First 256 Slots Allocated to ISO –Backwards Compatible (woo-hoo!)

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Character Sets A Brief Digression... Bottom Line –Specify Your Encoding As Required –Important For International Applications Multi-Lingual Applications There, now you know about it.

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC XML Declaration Examples –Property Order is Not Important –Parameter Names are lower case –Values are Quoted –Properties are Space-Delimited

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Document Type Declaration Describes Root Element –Top-Level Document Container Designates DTD –Document Type Definition –For Precisely Defining Document Structure Names DTD Using Public Identifier Locates DTD Using System Identifier –Defined Internal Subset of DTD

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Example of External DTD <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" SYSTEM " /DTD/xhtml1-strict.dtd"> Note Root Element Name Note Public Identifier –Names DTD Using Public Name See comments on p51 of text Note System URI –Tells Software Application Where to Find It

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Example of Internal DTD <!DOCTYPE PARENT [ <!ATTLIST IDENTIFIER NUMBER ID #REQUIRED TYPE (natural|adopted|testube) "natural"> ]>

CSU - DCE Introduction to XML XML Core Concepts - Fort Collins, CO Copyright © XTR Systems, LLC Example of Ext & Int DTD <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" SYSTEM " /DTD/xhtml1-strict.dtd"> [ XML > <!ENTITY CREDO " Resistance is Futile "> ]>