Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.

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

Introduction to HTML & CSS
Creating and Editing a Web Page Using Inline Styles
XML: Managing Data Exchange Stylesheets. Lesson Contents CSS The basic XSL file XSL transforms Templates Sort Numbering Parameters and Variables Datatypes.
Using Advanced Cascading Style Sheets
Chapter 5 Creating an Image Map
XML XML What XML is and what it means to me as a Computer Scientist By: Derek Edwards CS 376 March 10, 2003.
XML Unit 6 October 31. XML, review XML is used to markup data Used to describe information Uses tags like HTML –But all tags are user-defined –Must be.
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
HTML Hypertext Markup Language –First proposed by CERN in 1989 –It is non-linear so it allows you to jump from place to place –Markup refers to the structure.
1 CA201 Word Application Creating Document for the Web Week # 9 By Tariq Ibn Aziz Dammam Community college.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Introduction to XML Extensible Markup Language
Introduction to XML Extensible Markup Language Carol Wolf Computer Science Department.
Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
Understanding HTML Style Sheets. What is a style?  A style is a rule that defines the appearance and position of text and graphics. It may define the.
Tutorial 1: Getting Started with HTML5
Creating Tables in a Web Site Using an External Style Sheet
Working with Namespaces Combining XML Vocabularies in a Compound Document.
WORKING WITH NAMESPACES
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
Dreamweaver MX. 2 Creating External Style Sheets-1 (p. 400) n A style is a group of formatting attributes identified by a single name. n An ________ style.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
HTML, XHTML, and CSS Chapter 12 Creating and Using XML Documents.
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.
WORKING WITH XSLT AND XPATH
The Internet and the World Wide Web. The Internet A Network is a collection of computers and devices that are connected together. The Internet is a worldwide.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Exploring Microsoft Office Word 2007 Chapter 8 Word and the Internet Robert Grauer, Keith.
Integrating JavaScript and HTML5 HTML5 & CSS 7 th Edition.
Introduction to XML Extensible Markup Language. What is XML XML stands for eXtensible Markup Language. A markup language is used to provide information.
HTML Concepts and Techniques Fourth Edition Project 6 Using Frames in a Web Site.
HTML, XHTML, and CSS Chapter 8 Adding Multimedia Content to Web Pages.
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 34 - Case Study: Active Server Pages and XML Outline 34.1 Introduction 34.2 Setup and Message.
Writing a JavaScript User-Defined Function  A function is JavaScript code written to perform certain tasks repeatedly  Built-in functions.
HTML Concepts and Techniques Fourth Edition Project 12 Creating and Using XML Documents.
Creating a Form on a Web Page
Presentation Topic: XML and ASP Presented by Yanzhi Zhang.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
XP New Perspectives on XML, 2nd Edition Tutorial 2 1 TUTORIAL 2 WORKING WITH NAMESPACES.
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 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 Tutorial 12 Working with Namespaces Combining XML Vocabularies in a Compound Document.
Creating Your First Web Page – Topic: Creating a wiki, blog, image blog and podcast Click Arrow - Next Slide 1.
Using Frames in a Web Site Project 6. Project Objectives Project 6: Using Frames in a Web Site 2 Define terms related to frames Describe the steps used.
The Web Wizard’s Guide to HTML Chapter One World Wide Web Basics.
HTML Concepts and Techniques Fifth Edition Chapter 4 Creating Tables in a Web Site.
Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.
HTML Concepts and Techniques Fifth Edition Chapter 3 Creating Web Pages with Links, Images, and Formatted Text.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
Creating and Editing a Web Page
Creating and Editing a Web Page Using Inline Styles
Chapter 29. Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-2 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML.
Creating Web Pages with Links, Images, and Embedded Style Sheets
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
Connecting to External Data. Financial data can be obtained from a number of different data sources.
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
Glencoe Introduction to Web Design Chapter 4 XHTML Basics 1 Review Do you remember the vocabulary terms from this chapter? Use the following slides to.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Web Basics: HTML/CSS/JavaScript What are they?
Project 1 Introduction to HTML.
Integrating JavaScript and HTML
Tutorial 7 – Integrating Access With the Web and With Other Programs
Presentation transcript:

Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition

Describe how XML differs from HTML Describe an XML document instance, and rules for creating a well-formed and valid XML document Define the purpose of the processing instruction, the document prolog, and the document instance Describe an XML Schema Definition (XSD) language file Chapter 12: Creating and Using XML Documents2 Chapter Objectives

Create and bind an XSL style sheet file to an XML document Discuss the uses of an XML data island in Internet Explorer Discuss the built-in table element methods for displaying an XML document in a table Create a JavaScript user-defined function to search an XML document Chapter 12: Creating and Using XML Documents3 Chapter Objectives

Chapter 12: Creating and Using XML Documents4 Creating an XML Document

Determine what type of XML document you are going to create Determine the contents of the document Determine how the document will be displayed Chapter 12: Creating and Using XML Documents5 Plan Ahead

The Extensible Markup Language (XML) was developed to provide a way to share all various types of data in one clear and efficient method XML provides a common format for all types of data that can be used by anyone using software that can read XML The HTML document displays the data Chapter 12: Creating and Using XML Documents6 XML vs. HTML5

XML uses tags to describe the structure of a document and its contents Formatting XML documents for display on a Web page requires binding or linking a style sheet to the XML document, which formats the elements of the XML document as they appear in a browser Extensible Stylesheet Language (XSL) is used to create style sheets for formatting structured XML data Chapter 12: Creating and Using XML Documents7 Designing XML Documents

Chapter 12: Creating and Using XML Documents8 XML Standards

Chapter 12: Creating and Using XML Documents9 XML Standards

Chapter 12: Creating and Using XML Documents10 Syntax Rules

Chapter 12: Creating and Using XML Documents11 Creating a Well-Formed XML Document

An XML Schema Definition describes the structure of an XML document, which includes the data types – string, integer, decimal, date, boolean, binary, anyURI XML Schema Definitions are XML files, and as such, they must conform to the same rules that any XML document must follow Chapter 12: Creating and Using XML Documents12 Creating an XML Schema Definition

Chapter 12: Creating and Using XML Documents13 Creating an XML Schema Definition

Chapter 12: Creating and Using XML Documents14 Creating an XML Schema Definition

Chapter 12: Creating and Using XML Documents15 Entering the Code for the Prolog, Root, Annotation, and Documentation Elements

Chapter 12: Creating and Using XML Documents16 Defining the Parent Element

Chapter 12: Creating and Using XML Documents17 Defining and Inserting the Child Elements

Chapter 12: Creating and Using XML Documents18 Entering Code for the Child Group Elements

Start your browser, type in the Address box and then press the ENTER key. Scroll down to find the section that begins with “Use this form only if you are behind a firewall or have a schema to check which is not accessible via the Web” Click the Browse button and navigate to and select the location of the file to validate Chapter 12: Creating and Using XML Documents19 Saving and Validating an XML Schema Definition File

Click the Show warnings and Keep Going check boxes, but not the Check as complete schema check box Click the Upload and Get Results button. A valid XML Schema Definition will have no error messages Chapter 12: Creating and Using XML Documents20 Saving and Validating an XML Schema Definition File

Chapter 12: Creating and Using XML Documents21 Saving and Validating an XML Schema Definition File

Chapter 12: Creating and Using XML Documents22 Creating a New XML Document and Entering the Prolog Code

Chapter 12: Creating and Using XML Documents23 Starting Entering a Document Instance in an XML Document

Chapter 12: Creating and Using XML Documents24 Finishing Entering a Document Instance in an XML Document

If necessary, activate your browser Click the Address bar Type html and then press the ENTER key to load the Web page Click the Browse button next to the XML Schema text box Navigate to location of the file to validate Click the Open button Click the Validate button on the XML Schema Validator to upload the files When the Web page indicates the XML instance and XML schema are present, click the Click here link to see the results Chapter 12: Creating and Using XML Documents25 Validating XML and XSD Files

Chapter 12: Creating and Using XML Documents26 Validating XML and XSD Files

Chapter 12: Creating and Using XML Documents27 Starting Creating an XSL Style Sheet

By combining the XSL elements and XML markup tags, an XSL style sheet tells the browser how to transform and format the XML document to display records in paragraph format on the Web page The for-each element makes each element appear in the list Chapter 12: Creating and Using XML Documents28 Using XSL Style Sheet Tags

Chapter 12: Creating and Using XML Documents29 Adding XSL Style Sheet Tags

Chapter 12: Creating and Using XML Documents30 Linking an XSL Style Sheet to an XML Document

Chapter 12: Creating and Using XML Documents31 Entering Code to Link an XML Document with an HTML Web Page

Chapter 12: Creating and Using XML Documents32 Entering Code to Add Navigation Buttons

Chapter 12: Creating and Using XML Documents33 Entering Tags and Attribute Values to Bind XML Elements to a Table

Chapter 12: Creating and Using XML Documents34 Entering Code to Bind an XML Document with an HTML Web Page

Chapter 12: Creating and Using XML Documents35 Entering Code for the and Elements

Chapter 12: Creating and Using XML Documents36 Entering Code for the findItem() User-Defined Function

Chapter 12: Creating and Using XML Documents37 Entering Code to Search the Recordset Values and Build the Output String

Chapter 12: Creating and Using XML Documents38 Entering Code to Complete the findItem() Function

Chapter 12: Creating and Using XML Documents39 Entering Code for the keyPressed() Function

Chapter 12: Creating and Using XML Documents40 Entering Code for the clearField() Function

Describe how XML differs from HTML Describe an XML document instance, and rules for creating a well-formed and valid XML document Define the purpose of the processing instruction, the document prolog, and the document instance Describe an XML Schema Definition (XSD) language file Chapter 12: Creating and Using XML Documents41 Chapter Summary

Create and bind an XSL style sheet file to an XML document Discuss the uses of an XML data island in Internet Explorer Discuss the built-in table element methods for displaying an XML document in a table Create a JavaScript user-defined function to search an XML document Chapter 12: Creating and Using XML Documents42 Chapter Summary

Chapter 12 Complete HTML5 AND CSS Seventh Edition