Aalborg University – Department of Production XML Extensible Markup Language Kaj A. Jørgensen Aalborg University, Department of Production XML – Extensible.

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

From characters to text: XML in a nutshell Tamás Váradi
XML: Extensible Markup Language
Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
XML & Data Structures for the Internet Yingcai Xiao.
Web Services Darshan R. Kapadia Gregor von Laszewski 1http://grid.rit.edu.
Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
XML Technologies and Applications Rajshekhar Sunderraman Department of Computer Science Georgia State University Atlanta, GA 30302
XML A brief introduction ---by Yongzhu Li. XML --- a brief introduction 2 CSI668 Topics in System Architecture SUNY Albany Computer Science Department.
XML –Query Languages, Extracting from Relational Databases ADVANCED DATABASES Khawaja Mohiuddin Assistant Professor Department of Computer Sciences Bahria.
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.
WSDL Web Services Description Language Neet Wadhwani University of Colorado 3 rd October, 2001.
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
Processing of structured documents Spring 2003, Part 6 Helena Ahonen-Myka.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
An Introduction to XML Patrice Bonhomme & Laurent Romary Lucid-ITLORIA eXtensible Markup Language version 1.0 Recommendation,
Object and component “wiring” standards This presentation reviews the features of software component wiring and the emerging world of XML-based standards.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
XML: Overview MIS 181.9: Service Oriented Architecture 2 nd Semester,
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.
Another PillowTalk Presentation  2004 Dynamic Systems, Inc. Introduction to XML for SOA Lee H. Burstein,
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
XML - Why: The HTML-Dilemma HTML, SGML, XML - How: Syntax, Concept, Language Elements Basics Well-formed XML-Documents (without DTD) Valid XML-Documents.
XML Basics Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Extensible Meta Language Markup Language.
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.
Web Services Description Language (WSDL) Jason Glenn CDA 5937 Process Coordination in Service and Computational Grids September 30, 2002.
 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.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
Presentation Topic: XML and ASP Presented by Yanzhi Zhang.
XML – An Introduction Structured Data Mark-up James McCartney CSCE 590, Cluster and Grid Computing.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
Web Services Standards. Introduction A web service is a type of component that is available on the web and can be incorporated in applications or used.
Waqas Anwar Next SlidePrevious Slide. Waqas Anwar Next SlidePrevious Slide XML XML stands for EXtensible Markup Language.
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.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
1 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
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.
1 Web Services Web and Database Management System.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson LIS1510 Library and Archives Automation Issues XML and extensible systems Andy Dawson School.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
Martin Kruliš by Martin Kruliš (v1.1)1.
Working with XML. Markup Languages Text-based languages based on SGML Text-based languages based on SGML SGML = Standard Generalized Markup Language SGML.
Introduction to Web Services Presented by Sarath Chandra Dorbala.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
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.
XML 1. Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall SAMPLE XML SCHEMA (XSD) 2 Schema is a record definition, analogous to the.
XML BASICS and more…. What is XML? In common:  XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed.
Unit 4 Representing Web Data: XML
XML Related Technologies
Sabri Kızanlık Ural Emekçi
XML in Web Technologies
Chapter 7 Representing Web Data: XML
Presentation transcript:

Aalborg University – Department of Production XML Extensible Markup Language Kaj A. Jørgensen Aalborg University, Department of Production XML – Extensible Markup Language

Aalborg University – Department of Production Extensible Markup Language (XML) XML: looks like HTML but is more than HTML XML will not replace HTML – XML will complement HTML XML is extensible – users can define custom tags Data can be formatted for displaying with HTML With XML, the meaning of data can be represented XML is a metalanguage a language for making new markup languages XML is a simplification of Standard Generalized Markup Language (SGML) Public software available for XML processing, e.g. i Java XML – Extensible Markup Language

Aalborg University – Department of Production XML – Schema Definition and Style Definition XML Schema and Document Type Definition (DTD) Separate files defining the structure of XML documents Well-formed XML documents folows the rules of XML Valid XML documents are well-formed and conforms with a schema file or DTD file Extensible Style Language (XSL) Style sheets can be written in XSL With XSL, XML documents can be formatted, e.g. in HTML Different XSL style sheets can format XML documents differently XML – Extensible Markup Language

Aalborg University – Department of Production XML – Extensible Markup Language HTML Example: Lime Jello Marshmallow Cottage Cheese Surprise Lime Jello Marshmallow Cottage Cheese Surprise My grandma's favorite (may she rest in peace). Ingredients Qty Units Item 1 box lime gelatin 500 g multicolored tiny marshmallows 500 ml cottage cheese dash Tabasco sauce (optional) Instructions Prepare lime gelatin according to package instructions...

Aalborg University – Department of Production Hypertext Markup Language (HTML) Characteristics of HTML: isn't extensible is very display-centric isn't directly reusable only provides one 'view' of data has little or no semantic structure HTML documents are presented with a browser View the HTML document with the IE browser: example: Recipe.html XML – Extensible Markup Language

Aalborg University – Department of Production XML tags – User Definable Start tag: XML – Extensible Markup Language Empty tag: End tag:

Aalborg University – Department of Production XML – Extensible Markup Language Lime Jello Marshmallow Cottage Cheese Surprise My grandma's favorite (may she rest in peace). 1 lime gelatin 500 multicolored tiny marshmallows 500 Cottage cheese Tabasco sauce Prepare lime gelatin according to package instructions

Aalborg University – Department of Production Characteristics of XML Some simple rules must be obeyed: No unclosed tags No overlapping tags – example: Let's call the whole thing off Attribute values must be enclosed in quotes The text characters ( ), (") and (space) must be represented by 'character entities': (<), (>), (") and ( ) The tag names define the meaning of data Data + meaning = information The hierarchy of tags define the information structure The tags don't define how the document is displayed Browsers can display XML documentes – example: Recipe.xml XML – Extensible Markup Language

Aalborg University – Department of Production Document Type Definition (DTD) DTD example: XML – Extensible Markup Language

Aalborg University – Department of Production XML – Extensible Markup Language XML Schema example:

Aalborg University – Department of Production XML – Extensible Markup Language XML document conforming to the XML Schema: Tove Svendson Ragnhildvei Stavanger Norway Empire Burlesque Hide your heart

Aalborg University – Department of Production Hierarchcical View of XML Documents Recipe example: Recipe Name Description Ingredients Ingredient Qty Item … Instructions Step … XML – Extensible Markup Language

Aalborg University – Department of Production Xpath Xpath is an expression language for Express addresses/links Navigation in XML documents Selection of sets of XML elements XPath is used in XSL/XSLT XLink, Xpointer and XQuery Xpath expression syntax axes::pathexpression[predicate] Path expressions are either Full path expressions or Relative path expressions XML – Extensible Markup Language

Aalborg University – Department of Production Xpath – Path Expressions Full Path Expressions Expresses a full path from the root node of a document Examples: /Recipe – selects all nodes /Recipe/Name – selects the Name node Relative Path Expressions Expresses a path from current node Examples: //Description – selects the Description node //Ingredient – selects all Ingredient nodes //Item – selects Item node in first Ingredient node XML – Extensible Markup Language

Aalborg University – Department of Production Xpath - Predicates Predicates are expressions to filter selected node sets Examples: //Ingredient[2] – Second ingredient node //Ingredient[last()]Last ingredient node – The unit attribute of Qty node //Ingredient[Qty>200]Ingredient nodes with Qty>200 //Ingredient[Qty>200]/ItemItem nodes for which Qty>200 XML – Extensible Markup Language

Aalborg University – Department of Production Xpath - Axes Additional standard path expressions Reserved words: child descendant parent ancestor following preceding Attribute Example with /Recipe/Ingredients as current node: XML – Extensible Markup Language

Aalborg University – Department of Production Style Sheets in Extensible Style Language (XSL) XSL style sheets define how to format XML documents, e.g. HTML, RTF and SQL input elements can be rearranged with style sheets are defined by Cascading Style Sheet language (CSS) Extensible Style Language (XSL) are also XML documents contain special tags with pre-defined meaning Each XSL style sheet contains a series of templates Different XSL style sheets can transform XML documents for different applications and display equipment XML – Extensible Markup Language

Aalborg University – Department of Production XML – Extensible Markup Language XSL Style Sheet:...

Aalborg University – Department of Production XML – Extensible Markup Language XSL Style Sheet – individual templates:

Aalborg University – Department of Production XML – Extensible Markup Language XSL Style Sheet – individual templates: Ingredients Qty Units Item -- optional

Aalborg University – Department of Production XML – Extensible Markup Language XSL Style Sheet – individual templates: Instructions

Aalborg University – Department of Production Exchanging XML Documents XML – Extensible Markup Language

Aalborg University – Department of Production Exchanging XML Documents, cont. XML – Extensible Markup Language

Aalborg University – Department of Production Application Integration XML – Extensible Markup Language

Aalborg University – Department of Production New Internet Technologies and Standards XML is the basis for Web Services expose and describe itself to other applications can be located by other applications via directories can be invoked by using standard protocols XML based standards are currently available Simple Object Access Protocol (SOAP) Web Services Desription Language (WSDL) Universal Desription, Discovery, and Integrat. (UDDI) a standard for new ways of publishing services conform to the basic ”request” and ”response” functionality supported by the World Wide Web Consortium (W3C) XML – Extensible Markup Language

Aalborg University – Department of Production Internet Technologies and Standards XML – Extensible Markup Language

Aalborg University – Department of Production Internet Technologies and Standards Discovery and access to an Internet Service (example) 1.a A Service Provider creates a service 1.b The service is defined in WSDL 1.c The service is published in a Service Directory 2.a A Service Client queries the directory 2.b The directory creates a reply 2.c The reply contains a WSDL descriptor of the service 3.a The Service Client invokes the service using the descriptor 3.b A SOAP message is structured, built and sent 3.c The Service Client receives and interprets the response XML – Extensible Markup Language

Aalborg University – Department of Production Simple Object Access Protocol (SOAP) Lightweight protocol for exchange of information The protocol is XML based, simple and extensible The SOAP standard consists of three parts the SOAP envelope, what message and who should handle it the SOAP encoding rules, serialisation mechanisms the SOAP remote procedure call representation SOAP envelope is an XML document with SOAP header, optional SOAP body, the message body, a set of body entries XML – Extensible Markup Language

Aalborg University – Department of Production Web Services Desription Language (WSDL) XML format for describing Internet services Abstract description of network endpoints operating on messages containing either document-oriented or procedure- oriented information Types, data type definitions, e.g. with XSD Message, definition of the data being communicated Port Type, set of supported operations by one or more endpoints Binding, protocol and data format for a particular port type. Port, single endpoint defined as binding and network address Service, a collection of related endpoints XML – Extensible Markup Language

Aalborg University – Department of Production Conclusion XML – Extensible Markup Language Meta language – users kan define specific languages, custom tags The tag names define the meaning of data XML Schema – definition of the structure of XML documents Extensible Style Language (XSL) – document formatting Style sheets are XML documents written in XSL Product data models can be formulated in XML Data exchange can be based on XML and XML Schema International solutions: E-business XML, WEB services XML – Extensible Markup Language