Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.

Similar presentations


Presentation on theme: "Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide."— Presentation transcript:

1

2 Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide to XML by Cheryl M. Hughes

3 Copyright © 2003 Pearson Education, Inc. Slide 1-2 CHAPTER 1 An Overview of XML

4 Copyright © 2003 Pearson Education, Inc. Slide 1-3 What is XML? XML stands for “Extensible Markup Language XML is a “metalanguage” that can be used to create markup languages XML languages can be created to describe specific data XML is an open standard, meaning that it is not tied to any specific technologies XML files can be created and edited with a text editor

5 Copyright © 2003 Pearson Education, Inc. Slide 1-4 Markup Language Fundamentals A “markup language” is a set of rules that define the structure of a document Programs, or applications, are used to interpret documents containing markup Some applications contain rules and instructions that can produce documents that can only be interpreted by that application – this is known as a “proprietary” format XML documents are “portable” because they can be interpreted by many different applications

6 Copyright © 2003 Pearson Education, Inc. Slide 1-5 The Beginning:SGML SGML stands for “Standard Generalized Markup Language” SGML was developed in the 1960’s and was the first standardized markup language SGML provides a framework for creating other markup languages XML and HTML are both SGML languages SGML is used mainly for very large documentation projects

7 Copyright © 2003 Pearson Education, Inc. Slide 1-6 HTML HTML was developed in the mid 1990’s as a lightweight language to be used for exchanging information over the World Wide Web HTML is an open standard, meaning that it is free to use and not tied to any particular technologies HTML documents, like XML documents, are plain text documents and can be created using a text editor HTML is limited in it’s scope and can not be extended

8 Copyright © 2003 Pearson Education, Inc. Slide 1-7 HTML Document Example 1 2 3 Job Posting: Webmaster 4 5 6 JOB POSTING 7 Job Title: Webmaster 8 Job Description: We are looking for a Webmaster to oversee 9the management of our company website. The Webmaster will be 10responsible for working with other staff members to collect 11information for the website, and for creating and maintaining the web 12pages. 13 Skills needed: Basic writing skills, good communication 14skills, HTML 15 16

9 Copyright © 2003 Pearson Education, Inc. Slide 1-8 HTML Document Example

10 Copyright © 2003 Pearson Education, Inc. Slide 1-9 The Need for XML XML was developed partly because of the limitations of HTML The W3C (World Wide Web Consortium) released the official XML version 1.0 specification in 1998 XML quickly gained popularity in the Web community XML itself is NOT a language, but rather a set of tools that can be used to create markup languages

11 Copyright © 2003 Pearson Education, Inc. Slide 1-10 Benefits of XML XML: Allows data to be self-describing Allows an author to create rules for the content an element can contain Languages can be developed for industry-specific or company-specific needs Elements describe the data, not the format Provides extensive linking functionality Can be used to interchange data between two proprietary formats Can be used to define standard syntax for many different languages Contains robust searching capabilities

12 Copyright © 2003 Pearson Education, Inc. Slide 1-11 Data vs. Presentation XML elements describe data properties HTML elements describe formatting properties XML elements can be formatted by using “style sheets” A style sheet is a set of instructions that describes how to format a document Many style sheets can be created to provide different presentations of a single document (ie – print vs. web page) A single style sheet can be used to provide formatting instructions for many XML documents

13 Copyright © 2003 Pearson Education, Inc. Slide 1-12 Differences Between XML and HTML XML is not dependant on a single document type XML allows an author to create elements that best fit the data XML separates data from presentation XML is strict about syntax XML tags are case-sensitive XML documents can be used with many different clients, not just web browsers XML documents require style sheets for their formatting information

14 Copyright © 2003 Pearson Education, Inc. Slide 1-13 XHTML: The Best of Both Worlds XHTML stands for “Extensible Hypertext Markup Language” XHTML is a language that is meant to merge HTML and XML XHTML contains the HTML element set, but adheres to XML’s syntax rules XHTML is extensible XHTML is accepted by many browsers

15 Copyright © 2003 Pearson Education, Inc. Slide 1-14 XML Document Example 1 2 3 Job Title: Webmaster 4 We are looking for a Webmaster to oversee the management 5 of our company website. The Webmaster will be responsible for 6working with other staff members to collect information for the 7website, and for creating and maintaining the web 8pages. 9 10 Basic writing skills 11 good communication skills 12 HTML 13 14

16 Copyright © 2003 Pearson Education, Inc. Slide 1-15 XML Document Example

17 Copyright © 2003 Pearson Education, Inc. Slide 1-16 XML Element Structure


Download ppt "Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide."

Similar presentations


Ads by Google