Creating an XML Document

Slides:



Advertisements
Similar presentations
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
Advertisements

Making Things Look Nice: Visual Appearance and CSS CMPT 281.
Introduction to CSS. What is CSS? A CSS (cascading style sheet) file allows you to separate your web sites (X)HTML content from it’s style. Use your (X)HTML.
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
ICS-FORTH 1 May 22, 2001 Christos Georgis The extensible markup language: An introduction to XML What is a XML document ? How do we check its validity.
Instructional Technology & Design Office or Insert Workshop Name Presented by Your Name Here.
4.01 Cascading Style Sheets
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
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
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02.
IS432 Semi-Structured Data Lecture 5: XSLT Dr. Gamal Al-Shorbagy.
Styles with Cascading Style Sheets (CSS) Web Design – Section 4-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design.
NetTech Solutions Working with Web Elements Lesson 6.
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
Introduction to CS520/CS596_026 Lecture One Gordon Tian Fall 2015.
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
XHTML,XML M.Abdullah Mrian. What is the XHTML Why XHTML ?
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 8 1 Creating Effective Web Pages Creating HTML Documents Tutorial 8.
CSS Basic (cascading style sheets)
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 eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 7.
CIS 275—Web App Dev I XML. 2 Introduction to XMLXML XML stands for ________________________. HTML was designed to display data. XML was designed to _________.
Waqas Anwar Next SlidePrevious Slide. Waqas Anwar Next SlidePrevious Slide XML XML stands for EXtensible Markup Language.
WEB APPLICATION DEVELOPMENT For More visit:
XML Basics A brief introduction to XML in general 1XML Basics.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
Louisa Lambregts, Louisa Lambregts
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
University of South Asia Course Name: Web Application Prepared By: Md Rezaul Huda Reza
ACM 262 INTRODUCTION TO WEB DESIGN Week-7 ACM 262 Course Notes.
Intro to CSS Christy. What is CSS?  Cascading Style Sheets  Separates content from presentation  Defines how to display HTML elements  Provides control.
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 6.
1 ITEC 4830 Graphics Design Chapter 1 Dreamweaver MX 2004 Basics.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Mark-up Languages Compare and describe at least 3 mark-up languages and what they do.
Tutorial 03 Working with Schemas 1. Contents The University Hospital Problem Solution 2.
WebD Introduction to CSS By Manik Rastogi.
Working with Cascading Style Sheets
Cascading Style Sheets (CSS)
CSS Cascading Style Sheets
Document Type Definition
Project 1 Introduction to HTML.
Style Sheets.
Creating an XSLT Style Sheet for Formatting Data
4.01 Cascading Style Sheets
Tutorial 04 (cont’) Using XPath Patterns in an XSLT Style Sheet.
Chapter 1 Introduction to HTML.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Web Developer & Design Foundations with XHTML
Unit Objectives Create a new page Import text Set text properties
Project 1 Introduction to HTML.
XML stands for Extensible Markup Language.
Introduction to web design discussing which languages is used for website designing
Creating an XML Document
Cascading Style Sheets
محمد احمدی نیا CSS محمد احمدی نیا
Tutorial 3 Working with Cascading Style Sheets
CIS 133 mashup Javascript, jQuery and XML
4.01 Cascading Style Sheets
Separating activities
Presentation transcript:

Creating an XML Document Tutorial 01 Creating an XML Document

Contents Introduction to XML Creating a Jazz Warehouse Web Page Problem Solution

Introduction to XML What is XML? The Difference Between XML and HTML XML is Everywhere

1. 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 tags are not predefined. You must define your own tags XML is designed to be self-descriptive XML is a W3C Recommendation

2. The Difference Between XML and HTML XML is not a replacement for HTML. XML and HTML were designed with different goals: XML was designed to transport and store data, with focus on what data is HTML was designed to display data, with focus on how data looks

3. XML is Everywhere XML is the most common tool for data transmissions between all sorts of applications. XML is device-independent and system-independent

Creating a Jazz Warehouse Problem A Jazz warehouse’s host want to create a simple web using XML to display all the new CDs which are available in his/her shop. So he want his web layout is as below:

Solution Analysis and Design Creating the web contents Creating the formatted file Applying the formatted file into the web content Testing

1. Analysis and Design Title: Monthly Specials at the Jazz warehouse Message CD contents: CD Name: Artist Prices Tracks

2. Creating the web contents 2.1 Creating a new XML file 2.2 Inserting the XML declaration 2.3 Inserting comments 2.4 Inserting the web contents

2.1 Creating a new XML file Open XML Spy > File > New > XML Document > OK

2.2 Inserting the XML declaration Use the code below to insert the declaration

2.3 Inserting comments Use the same syntax with HTML to insert comment in XML

2.4 Inserting the web contents 2.4.1 Inserting the root element 2.4.2 Inserting the title 2.4.3 Inserting the message 2.4.4 Inserting the CD contents

2.4.1 Inserting the root element Insert a root element which any name (here is SPECIALS)

2.4.2 Inserting the title Insert the title by applying the content in the title tag

2.4.3 Inserting the message To insert a text only on web page, we use the tag [CDATA]

2.4.4 Inserting the CD contents 2.4.4.1 Inserting the CD name 2.4.4.2 Inserting the artist 2.4.4.3 Inserting the CD prices 2.4.4.4 Inserting the CD tracks 2.4.4.5 Inserting other contents

2.4.4.1 Inserting the CD name Use the tag <CD> to insert the CD name

2.4.4.2 Inserting the artist Use the tag <ARTIST> to insert the artist name

2.4.4.3 Inserting the CD prices Use the tags <PRICEUS> and <PRICEUK> to insert prices

2.4.4.4 Inserting the CD tracks Use the tag <TRACK> to insert each track name

2.4.4.5 Inserting other contents Use the same syntax to insert two other CDs

3. Creating the formatted file 3.1 Creating a new CSS file 3.2 Formatting the title 3.3 Formatting the message 3.4 Formatting the CD name 3.5 Formatting the artist 3.6 Formatting the prices 3.7 Formatting the CD tracks

3.1 Creating a new CSS file Open Dreamweaver > File > New > CSS > Create

3.2 Formatting the title Set the properties of the title tag as below TITLE{ display:block; font-size:18pt; color:blue; font-weight:bold; font-family:Arial, Helvetica, ans-serif; margin-top:10pt; margin-left:5pt }

3.3 Formatting the message display:block; width:500pt; color:blue; font-style:italic; border-bottom:1pt solid black; padding-bottom:15pt; margin-top:10; margin-left:10pt; margin-right:10pt }

3.4 Formatting the CD name CD{ display:block; font-size:14pt; color:red; font-weight:bold; font-family:Arial, Helvetica, sans-serif; margin-top:20pt; margin-left:20pt }

3.5 Formatting the artist ARTIST{ display:block; font-size:12pt; color:black; font-style:italic; font-family:Times New Roman, Times, serif; margin-left:12pt }

3.6 Formatting the prices PRICEUS,PRICEUK{ color:black; font-size:12pt; font-family:Times New Roman, Times, serif; margin-left:12pt }

3.7 Formatting the CD tracks TRACK{ display:list-item; font-size:12pt; color:black; list-style-type:disc; font-family:Times New Roman, Times, serif; margin-left:25pt }

4. Applying the formatted file into the web content Use the code below to insert a CSS file into a XML file

5. Testing Open the web page again to check it’s in accordance with the requirements.

References New Perspectives on Creating Web Pages with HTML and XML (Patrick Carey & Mary Kemper) - Course Technology Publisher Creating Cool Web Sites with HTML, XHTML and CSS - Taylor, Dave, Wiley