IEEM 5352 E-Enterprise Integration

Slides:



Advertisements
Similar presentations
XML and Enterprise Computing. What is XML? Stands for “Extensible Markup Language” –similar to SGML and HTML –document “tags” are used to define content.
Advertisements

3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
CSE 190: Internet E-Commerce Lecture 17: XML, XSL.
F DIGITAL MEDIA: COMMUNICATION AND DESIGN INTRODUCTION TO XML AND XHTML.
XML Introduction What is XML –XML is the eXtensible Markup Language –Became a W3C Recommendation in 1998 –Tag-based syntax, like HTML –You get to make.
Introduction to XML: Yong Choi CSU Bakersfield.
XML Introduction By Hongming Yu Feb 6 th, Index Markup Language: SGML, HTML, XML An XML example Why is XML important XML introduction XML applications.
Manohar – Why XML is Required Problem: We want to save the data and retrieve it further or to transfer over the network. This.
Tutorial 1: Getting Started with HTML5
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
Why XML ? Problems with HTML HTML design - HTML is intended for presentation of information as Web pages. - HTML contains a fixed set of markup tags. This.
WPF chapter 15 Dr. John Abraham Professor UTPA. WPF –an introduction WPF provides a single platform capable of handling graphics, audio and video. WPF.
EXtensible Markup Language (XML) IEEM 5352 E-Enterprise Integration.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
IS432 Semi-Structured Data Lecture 5: XSLT Dr. Gamal Al-Shorbagy.
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.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
XML Basics Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Extensible Meta Language Markup Language.
 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,
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
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.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
Presentation Topic: XML and ASP Presented by Yanzhi Zhang.
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
Windows Presentation Foundation (WPF) Chapter 16 Dr. Abraham.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
Accessing Data Using XML CHAPTER NINE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
Using XML to present computer program Qingsong Yao Qingsong Yao Department of Computer Science Department of Computer Science York University York University.
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.
1 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
What it is and how it works
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.
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
XML Engr. Faisal ur Rehman CE-105T Spring Definition XML-EXTENSIBLE MARKUP LANGUAGE: provides a format for describing data. Facilitates the Precise.
Jennifer Widom XML Data Introduction, Well-formed XML.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
XML e X tensible M arkup L anguage (XML) By: Albert Beng Kiat Tan Ayzer Mungan Edwin Hendriadi.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
XP 1Creating Web Pages with XML Tutorial 1 New Perspectives on XML Tutorial 1 – Creating an XML Document.
XML Introduction to XML Extensible Markup Language.
XML Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
1 Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size, font color etc…
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Beyond HTML: Extensible Markup Language (XML)
Extensible Markup Language (XML) Pat Morin COMP 2405.
.
XSLT: The XML transformation language
XML Introduction Bill Jerome.
CIS 228 The Internet 9/20/11 XHTML 1.0.
XML QUESTIONS AND ANSWERS
Introduction to XHTML.
Microsoft Office Illustrated
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Creating an XML Document
XML Data Introduction, Well-formed XML.
XML Introduction By Hongming Yu Feb 6th, 2002.
eXtensible Markup Language (XML)
CSE591: Data Mining by H. Liu
Presentation transcript:

IEEM 5352 E-Enterprise Integration eXtensible Markup Language (XML)

What is XML? XML: eXtensible Markup Language (XML) defines an universal standard for electronically exchanging data for the Internet and Web applications and is supported by major IT vendors. Topics covered include: Authoring XML element and documents XML schema and Document Type Definition (DTD) XSL (eXtensible Style Language) for transforming XML to HTML Tools for authoring and browsing XML to document XML 是在網際網路及Web上定義資料標準格式之語言。 XML是將傳統的SGML加以簡化,但是又比HTML有彈性,使用者可自行定義標籤 (Tags), 用來傳輸有結構性的資料是HTML之後方興未艾的Web標準。在電子商務上,尤其企業間 (B2B) 電子商務交易,XML將式資料交換企業整合的重要技術與標準。

XML can take large chunks of information and consolidate them into an XML document - meaningful pieces that provide structure and organization to the information.

Basic building block of an XML document is the element defined by tags.

Root element -> Nested elements -> Hierarchical structure.

XML Documents An well formed XML document can be read and understood by an XML parser. DTD (Document Type Definition) determines the structure and elements of an XML document. XML parsers read XML documents and extract the data for access by another program.

XML-Enabled Standards RosettaNet is a consortium of product vendors and end users that defines a framework for data and process interchange with e-business -XML document and standard process flows. XEDI is published specification describing how to map traditional EDI to XML and back again. BizTalk is an industry consortium founded by Microsoft to define a standard XML grammar for XML-based messaging and metadata.

XML-Enabled Standards (cont.) XFRML is an XML standard for reporting financial information over the Internet. XML-Schema is a working group of the W3C that is looking to describe a better mechanism for determining the structure of an XML document. XML Query is another W3C working group looking to create a common set of operations and language syntax for accessing persisted XML data. XSLT provides a standard XML document transformation mechanism using a stylesheet as a common processing engine.

XML Tools XML Notepad (XML Editing Tool) XML Parser http://msdn.microsoft.com (.NET Frameworks 2.0) http://www.microsoft.com/downloads/details.aspx?familyid=72d6aa49-787d-4118-ba5f-4f30fe913628&displaylang=en (XML Notepad) XML Parser Edit/Create Cascading Style Sheet (CSS) http://www.microsoft.com/downloads/thankyou.aspx?familyId=2cf40ae6-368c-4b6b-a185-2dfa92fb7993&displayLang=en (Microsoft XML Parser)

XML Example File (prods.xml) <?xml version=“1.0”?> <PRODUCTLIST xmlns=“x-schema:listschema.xml”> <PRODUCT> <ID>722</ID> <NAME>PENTIUM 100</NAME> <PRICE>1000</PRICE></PRODUCT> <ID>721</ID> <NAME>PENTIUM 11 300<NAME> <PRICE>5000</PRICE></PRODUCT> <ID>720</ID> <NAME>PENTIUM 111 450</NAME> <PRICE>15000</PRICE> </PRODUCT> </PRODUCTLIST>

Rules for Well-Formed XML Mandatory Closing Tag The set of tags are unlimited but all container tags must have end tag, e.g., <tag>…</tag>. Example: <number>kj9876_34</number> <due>1/12/98</due> <bill_to>MTB1</bill_to> <ship_to>MTO1</ship_to> <selling_party>AC987</selling_party>

Rules for Well-Formed XML (cont.) Proper Element Nesting All tags must be nested correctly. Like HTML, XML can intermix tag, but tags may not overlap each other. Legal XML <PRODUCT> <ID>721</ID> <NAME>PENTIUM 11 300</NAME> <PRICE>5000</PRICE> </PRODUCT> Illegal XML <PRODUCT> <ID> <NAME>PENTIUM 11 300<NAME> <PRICE>5000</PRICE> </PRODUCT> </ID>

Rules for Well-Formed XML (cont. 2) Double-quote value delimiters All attribute values must be enclosed in single or double quotation marks. Legal: <tag attribute=“value”> Illegal: <font size = 6> <XML> <xml> are different

Rules for Well-Formed XML (cont. 3) Single tag element Singleton tag (called empty element or tags without content) must be written in an abbreviated form using special XML syntax. Legal: <BR/> <TITLE></TITLE> is equivalent to <TITLE/>

XML with an internal DTD DTD (Baseball.dtd) <!ELEMENT BASEBALL (TEAM)+> <!ELEMENT TEAM (CITY, PLAYER*)> <!ELEMENT CITY (#PCDATA)> <!ELEMENT PLAYER (LASTNAME, FIRSTNAME, AVG)> <!ELEMENT FIRSTNAME (#PCDATA)> <!ELEMENT LASTNAME (#PCDATA)> <!ELEMENT AVG (#PCDATA)> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE BASEBALL SYSTEM "Baseball.dtd"> <BASEBALL> <TEAM> <CITY>New York</CITY> <PLAYER> <LASTNAME>Strawberry</LASTNAME> <FIRSTNAME>Daryl</FIRSTNAME> <AVG>.286</AVG> </PLAYER> </TEAM> <CITY>Baltimore</CITY> <LASTNAME>Alomar</LASTNAME> <FIRSTNAME>Roberto</FIRSTNAME> <AVG>.287</AVG> </BASEBALL> +: 1 or more *: 0, 1 or more

XML 之網頁呈現 content DTD/ XML Schema Structure Processing for Display or Conversion Document with Special Format (HTML/CSS) XML document content XSL Display XML Parser

XML Parser SERVER CLIENT XML Database XML XML NETWORK Client Application XML Converter Client Application Database XML

XML SCHEMA XML SCHEMA (XML-DATA) Much richer and more extensible way Describe the rule for the content of a document and use XML itself as a grammar It was submitted to the W3C as the XML-DATA submission

XML SCHEMA A schema is defined using a particular XML syntax Multiple <ElementType name="to" content="textOnly" /> <ElementType name="from" content="textOnly" /> <ElementType name="cc" content="textOnly" /> <ElementType name="bcc" content="mixed"> <attribute type="hidden" required="yes" /> </ElementType> <element type="to" minOccurs="1" maxOccurs="*" /> <element type="from" minOccurs="1" maxOccurs="1" /> <element type="cc" minOccurs="0" maxOccurs="*" /> <element type="bcc" minOccurs="0" maxOccurs="*" /> Multiple

XML and XSL XML XML HTML Internet Web XSL Server (Browser) eXtensible Stylesheet Language (XSL)

XSL Example File <?xml version=“1.0”?> <HTML xmlns:xsl=“http:www.w3.org/tr/wd-xsl”> <body> <h1>test</h1> <xsl:for-each select=“PRODUUCTLIST/PRODUCT”> <DIV STYLE=“background-color:teal;color:white;padding:4px”> <SPAN STYLE=“font-weight:bold;color:white”> <xsl:value-of select=“id”/></SPAN> <xsl:value-of select=“name”/> </DIV> <DIV STYLE=“margin-left:20px;margin-bottom:font-size:12pt”> <I>price:<xsl:value-of select=“price”/></I> <xsl:for-each> </body> </HTML>

Business to Customer Web Server Bookstore Database Bookstore Customer Order this book Web Server Bookstore Database Bookstore Customer Index all book Search Order books Book List Publish publisher Publisher XML

References Http://www.w3.org Extensible Markup Language (XML) 1.1 (Second Edition) http://www.w3.org/TR/2006/REC-xml11-20060816 Extensible Stylesheet Language (XSL) Version 1.1 http://www.w3.org/TR/2006/REC-xsl11-20061205/ XSL Transformation (XSLT) http://www.w3.org/TR/2007/REC-xslt20-20070123/

XML Notepad

Example

Catalog ID Catalog name Catalog expiration date Catalog issue date Categories 1 A 10/1 #1, #2, …. 2 B 10/2 <catalog> <catalog ID>1</catalog ID> <catalog name>A</catalog name> <category> <category ID>1</category ID> <category name>T-shirt</category name> ……. </category> ….. </catalog> Category ID Category name Products 1 T-shirt #1, #2 2 Dress #3 Product ID Product name Size Color Price Category 1 Flower T-shirt M Blue 250 #1 2 Bear T-shirt S Red 3 Circle dress L Black 400 #2