22 April 041 XML: An Introduction What is XML? What is a well-formed XML document? This session will introduce you to XML by providing a brief history.

Slides:



Advertisements
Similar presentations
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.
Advertisements

XML and Enterprise Computing. What is XML? Stands for “Extensible Markup Language” –similar to SGML and HTML –document “tags” are used to define content.
 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
History Leading to XHTML
Introduction to XML John Arnett, MSc Standards Modeller Information and Statistics Division NHSScotland Tel: (x2073)
Tutorial 9 Working with XHTML
Lecture 14 XML Validation. a simple element containing text attribute; attributes provide additional information about an element and consist of a name.
Extensible Markup Language XML MIS 520 – Database Theory Fall 2001 (Day) Lecture 14.
Thayer School of Engineering Dartmouth Lecture 2 Overview Web Services concept XML introduction Visual Studio.net.
XML A brief introduction ---by Yongzhu Li. XML --- a brief introduction 2 CSI668 Topics in System Architecture SUNY Albany Computer Science Department.
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.
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Fundamentals of Web DevelopmentRandy Connolly and Ricardo HoarFundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Fundamentals of Web DevelopmentRandy.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Copyright © 2003 Pearson Education, Inc. Slide 2-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
ECA 228 Internet/Intranet Design I Intro to XML. ECA 228 Internet/Intranet Design I HTML markup language very loose standards browsers adjust for non-standard.
Creating a Simple Page: HTML Overview
Lecture 15 XML Validation. a simple element containing text attribute; attributes provide additional information about an element and consist of a name.
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.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
Practical RDF Chapter 1. RDF: An Introduction
XML: Overview MIS 181.9: Service Oriented Architecture 2 nd Semester,
XML The Overview. Three Key Questions What is XML? What Problems does it solve? Where and how is it used?
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
TEXT ENCODING INITIATIVE (TEI) Inf 384C Block II, Module C.
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 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,
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 A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
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.
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the.
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.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
The eXtensible Markup Language (XML). Presentation Outline Part 1: The basics of creating an XML document Part 2: Developing constraints for a well formed.
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
XML Basics A brief introduction to XML in general 1XML Basics.
Tutorial 13 Validating Documents with Schemas
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 –
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
Introduction to XML XML – Extensible Markup Language.
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.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
1 Agenda What is XML? XML Jargon Why XML? Why Now? Advantages Disadvantages of XML What is FIX? What is FIXML? What other standards are available? How.
XML Validation. a simple element containing text attribute; attributes provide additional information about an element and consist of a name value pair;
Module Road Map Assignment Road Map Notice we have linked the conduit directly to the presentation layer. This is normally a bad idea!
XML The Overview. Three Key Questions What is XML? What Problems does it solve? Where and how is it used?
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
Introduction to XML Jussi Pohjolainen TAMK University of Applied Sciences.
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.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
XML Extensible Markup Language
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.
CIS 228 The Internet 9/20/11 XHTML 1.0.
Creating a Well-Formed Valid Document
Tutorial 9 Working with XHTML
Tutorial 9 Working with XHTML
Tutorial 9 Working with XHTML
Allyson Falkner Spokane County ISD
Presentation transcript:

22 April 041 XML: An Introduction What is XML? What is a well-formed XML document? This session will introduce you to XML by providing a brief history of the protocol. Learn XML Syntax and work through examples to understand what constitutes a well formed XML document

22 April 042 Introduction to XML Jim Northey Jordan and Jordan Chair, FPL Global Derivatives Committee Chair, FPL Global Derivatives Committee

Making the Transition to FIXML 22 April 043 What is XML? It’s A Floor Wax!! It’s a Dessert Topping!! The BEST NEW thing since RDBMS’ and Objects!!!

Making the Transition to FIXML 22 April 044 What is XML? HistoryHistory Move beyond the closed markup language HTML to add semanticMove beyond the closed markup language HTML to add semantic eXtensible Markup LanguageeXtensible Markup Language –Open ended mark up language XML is a Meta markup languageXML is a Meta markup language –Markup language used to create other markup languages Just like HTML uses Tags to organize dataJust like HTML uses Tags to organize data –The tags describe the content of the message Self describing dataSelf describing data –Description of the message with the message provides for considerable flexibility SGML HTML XML XHTML s

Making the Transition to FIXML 22 April 045 Driving force behind XML W3C - World Wide Web Consortium - World Wide Web Consortium –founded in October 1994 to lead the World Wide Web to its full potential by developing common protocols that promote its evolution and ensure its interoperability. Today, W3C has over 450 Members and nearly 70 full-time staff around the world who contribute to the development of W3C specifications and software. –

Making the Transition to FIXML 22 April 046 HTML - A Closed Markup Language Futures Industry Association - The FIA is the only association representative of all organizations that have an interest in the futures market. <BODY BGCOLOR="#333333" ALINK=# VLINK=#E9E7A7 LINK=#E9E7A7 TOPMARGIN=0 LEFTMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0> FUTURES INDUSTRY ASSOCIATION... The Futures Industry Association and the Futures Industry Institute. Futures, Markets, Volume, CFTC, SEC, Trade, Show, Boca, Electronic, Trading, Expo, Exhibit, Education, Optech, Market, Commission, Merchant, Finance, FCM, Commodities, Commodity, Trading, Advisor, CTA, Derivatives, Risk, Management, Options, Hedge, Trading, y2k, FII, FIA, De-regulation, Regulation, Contract, Specifications, Clearing, Series, 31, 32, 33, Alternative, Investments, Ethics, Factbook, Data, Investor, Managed

Making the Transition to FIXML 22 April 047 A note on terminology In this presentation “ XML Message ” and “ XML Document ” are used interchangeablyIn this presentation “ XML Message ” and “ XML Document ” are used interchangeably

Making the Transition to FIXML 22 April 048 Quick Overview on XML An XML Document or Message is made up of ElementsAn XML Document or Message is made up of Elements Elements are composed ofElements are composed of –All tags contain a name –An Opening Tag –optional attributes –optional content –A Closing Tag Elements can be emptyElements can be empty –Meaning the Opening Tag can be terminated with a backslash character Elements are nestedElements are nested –Elements can contain other elements containing other elements …. –Forms a tree of information White space is ignored with the exception of the information between the element opening tag and closing tagWhite space is ignored with the exception of the information between the element opening tag and closing tag this is the data for this element Customer Unknown

Making the Transition to FIXML 22 April 049 Well Formed XML Messages There are only a handful of rules that need to be followed to create XML messagesThere are only a handful of rules that need to be followed to create XML messages XML messages that follow the simple rules are considered to be:XML messages that follow the simple rules are considered to be: Well Formed XML Messages Well Formed Messages are good A Well Formed XML document is not to be confused with a Valid XML document

Making the Transition to FIXML 22 April 0410 Anatomy of an XML Message EK XML Declaration Root Element Value Opening Tag Empty Tag Attribute Attribute Value Closing Tag Nested Elements What’s This? Element

Making the Transition to FIXML 22 April 0411 XML Declaration First line in XML documentFirst line in XML document Delimited by Delimited by Three properties that you can setThree properties that you can set –version Always use this propertyAlways use this property There is only one version now “1.0”There is only one version now “1.0” –encoding Use if you require support of an alternative character setUse if you require support of an alternative character set Usually not neededUsually not needed Default character set is UTF-8, which is the ~ASCII part of UnicodeDefault character set is UTF-8, which is the ~ASCII part of Unicode –standalone Use this property to tell an XML processor if there are other files required to process this XML documentUse this property to tell an XML processor if there are other files required to process this XML document Valid values “yes” or “no”Valid values “yes” or “no”

Making the Transition to FIXML 22 April 0412 Elements Have an Opening Tag and a Closing TagHave an Opening Tag and a Closing Tag XML Elements are nested - into a tree structureXML Elements are nested - into a tree structure The outer most (top level) element is called the Root ElementThe outer most (top level) element is called the Root Element Content for the element is contained between the Opening Tag and the Closing TagContent for the element is contained between the Opening Tag and the Closing Tag Tag names (element names)Tag names (element names) –cannot have embedded spaces or punctuation characters other than - and _ –are case sensitive

Making the Transition to FIXML 22 April 0413 Attributes Can be added to the Opening Tag of an ElementCan be added to the Opening Tag of an Element name=“value” or name=‘value’ formatname=“value” or name=‘value’ format White space ignoredWhite space ignored –name = ‘value’ No embedded spaces or punctuation in an attribute nameNo embedded spaces or punctuation in an attribute name –except “-” and “_” IMHO: Think of elements as objects, think of attributes as urrrr..., well attributes of the objects (elements)IMHO: Think of elements as objects, think of attributes as urrrr..., well attributes of the objects (elements) –Sometimes objects contain other objects (elements) –Sometimes they just have attributes (data elements, member variables) –In fact the ISO Working Group 10 creating ISO/XML uses object modeling (UML) to create their XML definitions

Making the Transition to FIXML 22 April 0414 Defining our own XML Message John Doe ABC SSB Is this Well Formed???

Making the Transition to FIXML 22 April 0415 Defining our own markup languages We said earlier that XML is a meta markup languageWe said earlier that XML is a meta markup language XML is used to create domain specific markup languagesXML is used to create domain specific markup languages How do we agree upon a dialect and then share this with others?How do we agree upon a dialect and then share this with others? How do we know if an XML message complies with our XML dialect (a *ML if you will) ?How do we know if an XML message complies with our XML dialect (a *ML if you will) ? There has to be …There has to be … –some mechanism we can use to describe our particular markup language (be it FIXML, FpML, JimML, EdML, MathML, AgXML, …) –some way to share this description of our *ML –some way automate the process of making sure an incoming XML message is a valid *ML message Good News There Is!!!!

Making the Transition to FIXML 22 April 0416 Describing XML Messages Document Type Definitions (DTDs)Document Type Definitions (DTDs) XML SchemaXML Schema Relax NGRelax NG … The Bad News is there is more than one way!

Making the Transition to FIXML 22 April 0417 Describing XML Messages Document Type Definitions (DTDs)Document Type Definitions (DTDs) –Provided with the original definition of SGML as defined by Goldfarb –Think of DTD statements as control statements for defining XML documents –DTD statements are not really XML statements –Cannot use XML tools to manipulate DTD statements –Some consider the DTD statements as a separate language In practice it is a separate language though it is a fundamental part of XMLIn practice it is a separate language though it is a fundamental part of XML XML SchemaXML Schema –An XML based language for defining XML documents –Permits manipulation of the schema using standard XML tools –This is like defining the database schema in tables in a relational database –A recursion...

Making the Transition to FIXML 22 April 0418 <Order ID="123456" Side="1" TxnTm=" T12:00:00" Typ="2" Px="85.00"> <Hdr TID="SSB" SID="FCM" SeqNum="1" Snt=" T12:00:00"/> A Very Simple Order in FIXML Schema Version

Making the Transition to FIXML 22 April 0419 Example Allocation Report Example courtesy Lisa Taikitsadaporn and Nikhil Bose

Making the Transition to FIXML 22 April 0420 Another Order Example <Order ID="123456" Side="2" TxnTm=" T09:30:47-05:00" Typ="2" Px="93.25" Acct=" "> <Hdr Snt=" T09:30:47-05:00" PosDup="N" PosRsnd="N" SeqNum="521" SID="AFUNDMGR" TID="ABROKER"/> Example courtesy Nikhil Bose (AssistSoft)

Making the Transition to FIXML 22 April 0421 Resources on the web XML Tutorials: Tutorials: XML Tutorials and Specifications: Tutorials and Specifications: XML General: General: XML plus general IT coverage: plus general IT coverage: