Supply Chain & Enterprise Systems eXtensible Markup Language (XML) Basics MIS 6483 – Spring 2009 www.suse1.astate.edu/~jseydel Guest Instructor: John.

Slides:



Advertisements
Similar presentations
CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
Advertisements

History Leading to XHTML
Web Technologies COMP6115 Session 2: Planning, Designing, Constructing and Testing Static Web Sites Dr. Paul Walcott Department of Computer Science, Mathematics.
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
HTML and XHTML Controlling the Display Of Web Content.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
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.
F DIGITAL MEDIA: COMMUNICATION AND DESIGN INTRODUCTION TO XML AND XHTML.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Tutorial 1: Getting Started with HTML5
Overview of HTML. Three Different Approaches  Text editor like Notepad  HTML editor such as: –KompoZer –DreamWeaver –Microsoft Expression Web –iWeb.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
Creating a Simple Page: HTML Overview
Website Development & Management Introduction & Overview CIT Fall Instructor: John Seydel, Ph.D.
Creating a Basic Web Page
Website Development & Management Getting to Know HTML Better CIT Fall Instructor: John Seydel, Ph.D.
Working with XHTML Creating a Well-Formed Valid Document.
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.
1 Outline 3.1 Introduction 3.2 Editing HTML 3.3 First HTML Example 3.4 W3C HTML Validation Service 3.5 Headers 3.6 Linking 3.7 Images 3.8 Special Characters.
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
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 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
1 Essential HTML coding By Fadi Safieddine (Week 2)
Web page - A Web page is a simple text file that contains a set of HTML tags (code) that describe (to the browser) what should go on a web page. It may.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
Website Development & Management Creating Web Pages CIT Fall Instructor: John Seydel, Ph.D.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
Overview of HTML/XHTML Two Different Approaches  Text editor like Notepad  HTML editor such as: –KompoZer –DreamWeaver –Microsoft Expression Web –iWeb.
eCommerce Technologies Design & Development for the Web MIS Spring 2004 Instructors: Kelly Fish, Ph.D. John Seydel, Ph.D.
CSC 551: Web Programming Fall 2001 emerging & alternate Web technologies  Dynamic HTML  ActiveX  XML course overview  online review sheet  advice.
Electronic Commerce Planning for eCommerce MIS Spring 2006 Instructor: John Seydel, Ph.D.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
Website Development & Management Going Live with Web Pages (b) CIT Fall Instructor: John Seydel, Ph.D.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
HTML: Hyptertext Markup Language Doman’s Sections.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Objective: To describe the evolution of the Internet and the Web. Explain the need for web standards. Describe universal design. Identify benefits of accessible.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
Cascading Style Sheet CSS Closing Switch Closing Tag Code View
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.
eCommerce Technologies Syntax & Procedures for Markup MIS Spring 2004 Instructors: Kelly Fish, Ph.D. John Seydel, Ph.D.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Introduction to HTML.
Web Basics: HTML/CSS/JavaScript What are they?
Project 1 Introduction to HTML.
Creating a Well-Formed Valid Document
XML QUESTIONS AND ANSWERS
3.00cs HTML Overview 3.00cs Develop webpages.
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Chapter 4 - Introduction to XHTML: Part 1
Chapter 7 Representing Web Data: XML
Basic HTML and Embed Codes
Introduction to HTML- Basics
Structuring Content in a Web Document
Introduction to HTML5.
CS3220 Web and Internet Programming HTML and XML Basics
Pertemuan 1 Desain web Pertemuan 1
Presentation transcript:

Supply Chain & Enterprise Systems eXtensible Markup Language (XML) Basics MIS 6483 – Spring Guest Instructor: John Seydel, Ph.D.

Student Objectives Upon completion of this material you should be able to Describe the basics of what a markup language is and how it works Discuss where XML fits as a markup language Identify opportunities to use XML as a data wrapper Create XML files to be used in web applications Summarize several common uses of XML Discuss what a DTD does Identify several applications that currently use XML

Let’s Start with an Overview of Computer Languages  Programming languages Standalone  Traditional (e.g., COBOL)  Object-oriented (e.g., Java, VB.NET) And/or scripting languages (rely on other components)  JavaScript  Others (e.g., PHP)  Markup languages (e.g., SGML, HTML, XHTML, DHTML)  Stylesheet languages (e.g., CSS, XSL)  Database languages (e.g., SQL)  How about XML... ?

Markup Languages: A High Level Perspective

Some Markup Basics: Sample HTML for a Starter Web Page Home Page for Suzy Student Suzy Student Welcome to My Website! This site is currently under construction, so please come back later.

Summary of the Basic HTML Page  Document contains Title Page header Second level heading Short paragraph  Markup elements: html head body title h1 h2 p  Note the hierarchy  Refer to another example (see handout)...

eXtensible Markup Language  XML facilitates the interchange of information across disparate applicationsdisparate applications  Not a markup language in itself; instead XML is a meta language  XML can be used to create customized markup Generally not for web pages; exceptions  Ajax (note the “X”)  RSS feeds Instead for applications; consider the file format used for Office 2007 documents  Compressed XML files  Surprisingly smaller than binary files  Note that XHTML is essentially just HTML reformulated to conform to XML specifications  XML requires more than HTML, in particular a processing application

Exercise: Look at Some XML Examples  First, login locally as peachtree (password is accounting2008)  Microsoft PowerPoint 2007 Open PowerPoint Create a three slide presentation and save someplace you’ll be able to find it Close PowerPoint and navigate to the file Is this XML?  Now, navigate to ASU’s home page Select “NEWS & EVENTS” Click on RSS View the source code  If possible, use RDC to look at SimNet data

XML Components  A processing application Parses the code and then does something with it  Checks for well-formed documents  May also validate Includes one or more of the following  Desktop application  Web browser  Other... ?  Code XML document DTD Stylesheet  CSS (preferred for the time being)  XSL (not well supported yet)

Why a DTD?  With XML, we can Create our own markup language Use someone else’s markup  Thus, a DTD (i.e., DOCTYPE) can be used to ensure completeness and consistency Tells the user agent what the tags mean Provides syntax for the tags  Note: XML documents resemble HTML documents, but the tags are different The DTD for HTML is built into browsers User agents need to look externally for DTDs for XML documents  More later (if time permits)

Why Use XML?  Makes data free of context  Can do much more with it  Not restricted to standard browsers  Can render/process same set of data numerous ways, depending upon the DTD employed  Allows for special purpose treatment of content (e.g., chemical formulae, house plans, etc.)  Hence Application integration through marked up data Greater overall flexibility

A Sample XML Document  Language: RML (Recipe Markup Language)  Note XML declaration DTD for element Content  How would this look?

Sample RML Document Bean Burrito 1 can refried beans 1 small onion 3 flour tortillas Empty beans into saucepan and heat until beans are smooth. Then warm tortillas in microwave oven for 30 seconds. Spread 1/3 of beans on each tortilla, sprinkle with onions, roll, and serve.

Notice Some Things  General guidelines: XML declaration and DTD One tag contains all the others (root) All elements (including empty elements) have start/end Elements are nested (e.g., item within ingredient)  Hierarchical  Parent/child relationships Attribute values quoted  In other words, the same rules we should be applying to HTML (i.e., XHTML)  Consider another XML document...

Look Familiar? <!DOCTYPE html PUBLIC " > Home Page for Suzy Student Suzy Jo Student Welcome to my web site; Here's what you'll find:...

An XML Exercise  Web application (Ajax)  Involves Local files to be editted; save in c:\xampp\htdocs  HTML file (get from website)  XML file (create in NotePad) XML file Remote files  JavaScript  CSS  Images  Working version:

Now, the DTD  Can be within the XML document  More often external  Where can we find one to look at?  How about ANY web page... ?  Defines: elements, content, attributes, parent/child, entities

DTDs Specify Element Declarations  General syntax  Consider XHTML elements img p ul div

Finally, Attribute Lists  General syntax  XHTML attributes (for tag) src alt width height onMouseOver...

Summary of Objectives Describe the basics of what a markup language is and how it works Discuss where XML fits as a markup language Identify opportunities to use XML as a data wrapper Create XML files to be used in web applications Summarize several common uses of XML Discuss what a DTD does Identify several applications that currently use XML

Appendix

Facilitating B2B eCommerce

XML File for Ajax Example Name Fruit Vegetable Captain Banana Zucchini Admiral Melon Carrot Midshipman Orange Potatoe

File Formats Supported by the Web

Basic Architecture of the Web

More Sophisticated Web Architecture