A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop1 Grenoble Ecole de Management MEDFORIST Workshop XML in Brief Asuman Dogac Middle East Technical.

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

Overview Environment for Internet database connectivity
What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
XML: Extensible Markup Language
XML and Enterprise Computing. What is XML? Stands for “Extensible Markup Language” –similar to SGML and HTML –document “tags” are used to define content.
XML & Data Structures for the Internet Yingcai Xiao.
1 CP3024 Lecture 9 XML revisited, XSL, XSLT, XPath, XSL Formatting Objects.
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
CSE 190: Internet E-Commerce Lecture 17: XML, XSL.
Layer 7- Application Layer
Grid Computing, B. Wilkinson, 20043a.1 WEB SERVICES Introduction.
Chapter9 Introduction to Information Technology Turban, Rainer and Potter John Wiley & Sons, Inc. Copyright 2005.
1 Technological standards, communications protocols, security technology Packet Switching, Web Protocols, HTML, HTTP, HTTPS and HTTS Public and Private.
1 COS 425: Database and Information Management Systems XML and information exchange.
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
COS 381 Day 16. Agenda Assignment 4 posted Due April 1 There was no resubmits of Assignment Capstone Progress report Due March 24 Today we will discuss.
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.
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
16-1 The World Wide Web The Web An infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that information.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
XML eXtensible Markup Language by Darrell Payne. Experience Logicon / Sterling Federal C, C++, JavaScript/Jscript, Shell Script, Perl XML Training XML.
Pervasive e-commerce with XML Babak Esfandiari Carleton University Ottawa, Canada.
School of Computing and Management Sciences © Sheffield Hallam University To understand the Oracle XML notes you need to have an understanding of all these.
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.
MIS 315 Bsharah An Introduction to XML 1MIS Bsharah.
XML What is XML? XML v.s. HTML XML Components Well-formed and Valid Document Type Definition (DTD) Extensible Style Language (XSL) SAX and DOM.
Introduction to XML 1. XML XML started out as a standard data exchange format for the Web Yet, it has quickly become the fundamental instrument in the.
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
Introduction to XML. XML - Connectivity is Key Need for customized page layout – e.g. filter to display only recent data Downloadable product comparisons.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
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.
Introduction to XML Extensible Markup Language. What is XML XML stands for eXtensible Markup Language. A markup language is used to provide information.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
Electronic Commerce COMP3210 Session 4: Designing, Building and Evaluating e-Commerce Initiatives – Part II Dr. Paul Walcott Department of Computer Science,
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.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
WEB BASED DATA TRANSFORMATION USING XML, JAVA Group members: Darius Balarashti & Matt Smith.
1 XML An Overview Roger Debreceny University of Hawai`i Skip White University of Delaware XBRL Workshop, August 2006.
A. Dogac Grenoble Ecole de Management MEDFORIST Workshop1 Grenoble Ecole de Management MEDFORIST Workshop Microsoft Commerce Server Asuman Dogac Middle.
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
Week 11: Open standards and XML MIS 3537: Internet and Supply Chains Prof. Sunil Wattal.
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 Basics A brief introduction to XML in general 1XML Basics.
XML Engr. Faisal ur Rehman CE-105T Spring Definition XML-EXTENSIBLE MARKUP LANGUAGE: provides a format for describing data. Facilitates the Precise.
XML and Its Applications Ben Y. Zhao, CS294-7 Spring 1999.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
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 1.Introduction to XML 2.Document Type Definition (DTD) 3.XML Parser 4.Example: CGI Gateway to XML Middleware.
1 Extensible Stylesheet Language (XSL) Extensible Stylesheet Language (XSL)
Unit 4 Representing Web Data: XML
XML QUESTIONS AND ANSWERS
Database Processing with XML
Chapter 7 Representing Web Data: XML
Presentation transcript:

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop1 Grenoble Ecole de Management MEDFORIST Workshop XML in Brief Asuman Dogac Middle East Technical University Ankara Turkey

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 2/29 XML Extensible Markup Language has become the “universal” standard for representing data XML started out as a standard data exchange format for the Web Yet, it has quickly become the fundamental instrument in the development of Web-based online information services and electronic commerce applications Almost all recent electronic commerce standards are based on XML

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 3/29 XML A subset of SGML (Standard Generalized Markup Language); it is defined by World Wide Web Consortium HTML enables a universal method of displaying data; XML provides a universal method of describing data Provides the ability to describe data in an open text- based format and deliver it using standard http protocol

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 4/29 XML At present, many applications on the Web use XML for hosting large amounts of structured and semi- structured data Representation of information in XML documents has been increasing at an astonishing pace According to Meta Group, by 2003, about 65% of corporate data will be stored in an XML format

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 5/29 XMLMessaging Internet Electronic Data Interchange Large Enterprise XML: The Unifying Technology Mail, Phone, FAX, Small, Medium Enterprise

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 6/29 Browse the Web Program the Web Maturity of Web Infrastructure Technology Web Services XML Programmability HTML Web Pages Presentation Standard FTP, E -mail, Gopher T C P/IP Connectivity Innovation

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 7/29 XML helps address the challenge The data is self-describing  e.g. the meaning of the data is included: identifiers surround every bit of data, indicating what it means Far more flexible method of representing transmitted information  e.g. batched orders sent together can have different fields and format without breaking apps on each end Open, standard technologies for moving, processing and validating the data  e.g. the XML parser can automatically parse, validate, and feed the information to an application, instead of every application having to include this functionality

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 8/29 XML: An Example “Electronic Commerce”, “100”, “Turban”, “25”, “Addison- Wesley” Data stream in a typical interface… Electronic Commerce 100 Turban 25 Addison-Wesley Same data stream in XML…

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 9/29 Mark up (or Tagging) XML uses textual markups to define data An XML document is comprised of a collection of tagged elements each containing a start tag ( ), an end tag ( ), and the content between the two tags Example: 1234ABCD

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 10/29 Tagging Data in XML 1234ABCD Considering the content only, it is not possible to understand what 1234ABCD stands for The tag name PONumber intuitively tells that the content is a purchase order number Similarly, an XML element might be tagged as name, gender, birth date, salary, price,… XML is extensible in the sense that users can create their own vocabularies, the tag names are neither predefined nor limited

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 11/29 Adding Structure to data Tagged elements may be nested to any depth to provide structured data, or may be repeated to represent a list of values A valid XML document usually contains a single root element, which constitutes the top-level of nesting In other words, a valid XML document represents a tree of elements

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 12/29 Giving Meaning and Structure to Data 1234ABCD … Start Tag An Element An Attribute Another Element End Tag Data

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 13/29 Giving Structure to Data PurchaseOrderRequest PurchaseOrderDate PONumber LineItem ItemEAN_IdentificationQuantityOrderedUnitPrice

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 14/29 Document Type Definition (DTD) The principle purpose of the DTD is to declare the hierarchy of document elements A document type definition defines:  The name of the elements,  The content model of each element,  How often and in which order elements may appear,  If the end-tags can be shortcut,  The possible presence of attributes and their default values,  The names of the entities

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 15/29 An Example DTD <!DOCTYPE simple [...]>

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 16/29 DTDs A DTD specifies the structure of an XML element by specifying the names of its sub-elements and attributes Sub-element structure is specified using the operators  * : set with zero or more elements  + : set with one or more elements  ?: optional  | : or All values are assumed to be string values, unless the type is ANY in which case the value can be an arbitrary XML fragment

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 17/29 XML Namespaces Namespaces are a simple and straightforward way to distinguish names used in XML documents, no matter where they come from The only reason namespaces exist, is to give elements and attributes programmer-friendly names that will be unique across the whole Internet

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 18/29 Example <h:html xmlns:xdc=" xmlns:h=" Book Review XML: A Primer Author Price Pages Date Simon St. Laurent /01

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 19/29 XML Namespaces The prefixes are linked to the full names using the attributes on the top element.whose names begin xmlns:. The prefixes are just shorthand placeholders for the full names Those full names are URLs, i.e. Web addresses

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 20/29 Extensibility in XML Anyone can invent new tags and attach a meaning to those tags But if every user creates its own XML definition for describing his data, it is not possible to achieve interoperability For example, one may prefer to use the tag name “POR”, while another prefers using the tag name “PurchaseOrderReq” In other words, a tagged document is not very useful without some kind of agreement on the tags among inter-operating applications

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 21/29 Many Efforts for Standardized Tags… HL7 for healthcare RosettaNet for supply chain integration in Information Technology and Electronic Components domain ebXML for eBusiness Common Business Library (CBL) for electronic catalogs, purchase orders, etc. …

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 22/29 XML Parsers A parser takes an XML document and makes its structure and content available to an application through an API There are two main Application Programming Interfaces (APIs) for writing parsers:  Document Object Model (DOM) and  Simple API for XML (SAX) Today, many parsers are both DOM and SAX compliant

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 23/29 XML DOM Parser Application Code Initialize Parser In memory DOM: Perform Processing XML Parser XML Document Begin parsing Parsing complete A parser validates and makes the data contained in an XML document available to the application

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 24/29 XSLT Processor XML Document XSL Style Sheet 2 Output from Style Sheet 1 Output from Style Sheet 2 XSL Style Sheet 1 Parser XSLT Processor Converts an XML document to another form An XSL style sheet is a set of transformation instructions for converting a source XML document to a target document

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 25/29 table.xsl bar.xsl art.xsl

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 26/29 Why XML? EDIXML BGM ABCD+9' DTM+137: :102' LIN+1' PIA :EN ITEM:VP' QTY+21:16:EA' PRI+AAA:95' LIN+2' … 1234ABCD …

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 27/29 XML vs EDI XML is an open human- readable, text format EDI documents are typically in a compressed, machine-only readable form XML is designed to require one customised mapping per industry grouping, so most companies will be able to work to one format and use XML EDI traditionally requires customised mapping of each new trading partners document format XML requires a reliable PC with an Internet connection EDI typically requires dedicated servers that cost from USD10,000 and up

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 28/29 XML vs EDI XML documents are typically sent via the Internet - i.e. a relatively low-cost public network EDI documents are typically sent via private and relatively expensive value-added networks (VANs) XML in Internet-based has low ongoing flat-rate costs using existing Internet connections and relatively low-cost Web Servers EDI can involve high on-going transaction based costs keeping up the connection to the EDI network and keeping the servers up and running

A. Dogac Grenoble Ecole de Managenent MEDFORIST Workshop 29/29 XML vs EDI XML appears to have no upper limit in terms of numbers of users EDI is estimated to be limited to 300,000 companies worldwide and about 20% of their suppliers because of operational costs and complexity XML is being developed in a world of shared software development populated by many low-cost tools and open source projects. EDI was traditionally built from the ground up in semi-isolation without being able to share resources with other programs