An Introduction to XML Joint Presentation to the CDPUG and GCPCUG Web Publishing SIG - August 26, 2004.

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

CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
XML, Databases and Business Intelligence Presentation to the GCPCUG Data Warehousing SIG - March 19, 2001.
Overview Environment for Internet database connectivity
DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
XML: Extensible Markup Language
Getting Familiar with Web Pages 1 2 The Internet Worldwide collection of interconnected computer networks that enables businesses, organizations, governments,
XML Craig Stewart Dr. Alexandra I. Cristea
XML/EDI Overview West Chester Electronic Commerce Resource Center (ECRC)
XML and Enterprise Computing. What is XML? Stands for “Extensible Markup Language” –similar to SGML and HTML –document “tags” are used to define content.
Standards and Increasing Maintainability on Web- based Systems James Eaton SE4112/16/2006.
An Introduction to XML Based on the W3C XML Recommendations.
XML Prashant Karmarkar Brendan Nolan Alexander Roda.
XML A brief introduction ---by Yongzhu Li. XML --- a brief introduction 2 CSI668 Topics in System Architecture SUNY Albany Computer Science Department.
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.
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.
HTML, XML, PDF Pros and Cons.
1st Project Introduction to HTML.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
Chapter ONE Introduction to HTML.
XML Fundementals XML vs.. HTML XML vs.. HTML XML Document (elements vs. attributes) XML Document (elements vs. attributes) XML and RDBMS XML and RDBMS.
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
Sheet 1XML Technology in E-Commerce 2001Lecture 6 XML Technology in E-Commerce Lecture 6 XPointer, XSLT.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Embracing the Value of XML in Institutional Research Jim Few Center for Institutional Effectiveness Kennesaw State University Association.
Scientific Markup Languages Birds of a Feather A 10-Minute Introduction to XML Timothy W. Cole Mathematics Librarian & Professor of.
IT420: Database Management and Organization XML 21 April 2006 Adina Crăiniceanu
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.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 14 Networks, Multi-Tier Architectures, and XML.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
Demystifying the eXtensible Markup Language Nick Roberts & Jim Few
XML BIS4430 – unit 10. XML Origins Extensible Markup Language (XML) 1998 Inspired by Standard Generalized Markup Language (SGML) and HTML. SGML defines.
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.
 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,
EXtensible Markup Language (XML) and Documentation --ManojBokil -- Manoj Bokil.
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.
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.
Presentation Topic: XML and ASP Presented by Yanzhi Zhang.
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.
Report from Workshop 8: XML and related technologies ELAG 2001 Jan Erik Kofoed BIBSYS Library Automation.
1 Overview of XSL. 2 Outline We will use Roger Costello’s tutorial The purpose of this presentation is  To give a quick overview of XSL  To describe.
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 Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
XML Basics A brief introduction to XML in general 1XML Basics.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
XML A Language Presentation. Outline 1. Introduction 2. XML 2.1 Background 2.2 Structure 2.3 Advantages 3. Related Technologies 3.1 DTD 3.2 Schemas and.
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 –
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
 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:
I Copyright © 2004, Oracle. All rights reserved. Introduction.
HTML PROJECT #1 Project 1 Introduction to HTML. HTML Project 1: Introduction to HTML 2 Project Objectives 1.Describe the Internet and its associated key.
Unit 4 Representing Web Data: XML
Chapter 1 Introduction to HTML.
Project 1 Introduction to HTML.
XML in Web Technologies
Session I - Introduction
Session I - Introduction
Database Processing with XML
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Chapter 7 Representing Web Data: XML
Presentation transcript:

An Introduction to XML Joint Presentation to the CDPUG and GCPCUG Web Publishing SIG - August 26, 2004

Copyright © 2004 by Michael Mina - Presentation Overview What is XML? What is XML? Uses of XML Uses of XML XML in relation to other languages XML in relation to other languages Learning basic XML Learning basic XML Publishing with XML Publishing with XML XML and databases XML and databases XML Resources XML Resources

Copyright © 2004 by Michael Mina - What is XML? Extensible Markup Language - born 2/1998 Extensible Markup Language - born 2/1998 Extensible - create new markup languages Extensible - create new markup languages More than HTML, less than SGML More than HTML, less than SGML XML family of specifications XML family of specifications –XML, XSL, XSLT, XSL-FO, DOM, XML Namespaces, XLink, XPointer, XPath, XML Schema, XML Query Language

Copyright © 2004 by Michael Mina - Uses of XML Data Storage Data Storage Data Interchange Data Interchange Data Display/Rendering/Publishing Data Display/Rendering/Publishing All of the above are interrelated All of the above are interrelated All of the above are about data All of the above are about data

Copyright © 2004 by Michael Mina - Uses of XML Some specific examples Some specific examples –United Way I&R data interchange (call 211) –Dreamweaver extensions –File management of digital photographs –Transmit information from handheld into database (e.g., U-Haul) –CSU data transformation POC model Excel Access XML, XSL –Burden shifting: database server web server Limited only by your imagination (?) Limited only by your imagination (?)

Copyright © 2004 by Michael Mina - Uses of XML - Data Storage Data Storage Data Storage –Products marketed as XML databases Tamino Tamino TEXTML TEXTML –XML-enabled databases Oracle, SQL Server, DB2 Oracle, SQL Server, DB2 note: this is not a product endorsement

Copyright © 2004 by Michael Mina - Uses of XML - Data Storage When is XML Suited for Data Storage? When is XML Suited for Data Storage? –Data needs to be accessed by many systems –Hierarchical data –Smaller data set * –Speed not critical –Simpler queries used * –Data must be stored for a long time * Becoming less important over time as a consideration

Copyright © 2004 by Michael Mina - Uses of XML - Data Interchange Application Many translators (bridges) vs. a common language XML

Copyright © 2004 by Michael Mina - Uses of XML - Display/Rendering Data Display/Rendering Data Display/Rendering –Present the same content differently for different devices Before XML... Before XML... –Either support older standard only (e.g., HTML 3.2) –Or develop multiple sets of pages and redirect user based on their browser

Copyright © 2004 by Michael Mina - Uses of XML - Display/Rendering With XML... With XML... –One set of XML documents –One XSL document for each browser/device –If a new device or new use for existing device emerges… develop new standard protocol (e.g., WAP) develop new standard protocol (e.g., WAP) develop another XSL document develop another XSL document

Copyright © 2004 by Michael Mina - Uses of XML - Display/Rendering Then either Then either –serve XML and XSL to client Or Or –transform XML with XSL at server –serve appropriate markup to client

Copyright © 2004 by Michael Mina - Uses of XML - Publishing XMetaL Documentum Platform Repurposing of content HTML note: this is not a product endorsement content authoring tool content storage management PDF MS Word content WAP

Copyright © 2004 by Michael Mina - Uses of XML - Publishing In 2002, the USAF AWACS technical documentation was converted to XML Photo from

Copyright © 2004 by Michael Mina - Uses of XML - burden shifting client web server database server client web server database server XML Reduce the burden on a database server

Copyright © 2004 by Michael Mina - Why is XML needed? Consider HTML Consider HTML –HyperText Markup Language –Based on SGML –Most web pages use HTML

Copyright © 2004 by Michael Mina - Why is XML needed? Advantages of HTML Advantages of HTML –Easy to learn compared to most programming languages Readily available authoring tools (even a text file editor) Readily available authoring tools (even a text file editor) Readily available rendering tool Readily available rendering tool Browsers are free, all new PCs have browsers installed Browsers are free, all new PCs have browsers installed

Copyright © 2004 by Michael Mina - Why is XML needed? Disadvantages of HTML Disadvantages of HTML –Deviation from its original purpose Presentation should be based on a styling language Presentation should be based on a styling language –Lack of extensibility –Toleration of faulty code acceptable for web page design acceptable for web page design unacceptable for transmission of data unacceptable for transmission of data

Copyright © 2004 by Michael Mina - Why is XML needed? Consider SGML Consider SGML –Standard Generalized Markup Language No toleration of faulty code No toleration of faulty code Completely extensible Completely extensible –HTML, XML based on SGML

Copyright © 2004 by Michael Mina - Why is XML needed? The advantages of SGML are actually disadvantages in the web environment The advantages of SGML are actually disadvantages in the web environment Complete extensibility of SGML means Complete extensibility of SGML means –It is not cost-effective to develop browsers to support SGML –Potentially huge bandwidth and storage issues

Copyright © 2004 by Michael Mina - Why is XML needed? XML allows the use of metadata - data about data XML allows the use of metadata - data about data HTML tags HTML tags – The Gettysburg Address was written by Abraham Lincoln – The Gettysburg Address was written by Abraham Lincoln XML elements XML elements – The Gettysburg Address was written by Abraham Lincoln – The Gettysburg Address was written by Abraham Lincoln

Copyright © 2004 by Michael Mina - SGML, XML, HTML XML and HTML are subsets of SGML XHTML is HTML rewritten as an XML-based language SGML HTMLXML XHTML

Copyright © 2004 by Michael Mina - XML-based languages XML extensibility has led to XML extensibility has led to –Extensible Business Reporting Language (XBRL) –Security Assertion Markup Language (SAML) –Predictive Model Markup Language (PMML) –CellML to store and exchange computer-based biological models. to store and exchange computer-based biological models. –HR-XML consortium... an independent, non-profit organization dedicated to the development and promotion of a standard suite of XML specifications to enable e-business and the automation of human resources-related data exchanges.... an independent, non-profit organization dedicated to the development and promotion of a standard suite of XML specifications to enable e-business and the automation of human resources-related data exchanges. –Many others

Copyright © 2004 by Michael Mina - Basic XML Contact List Sanford Bill VP, Controller SDC, Inc Homestead Rd. Parma OH XML Markup includes: XML declaration Root Element Elements Attributes Entities

Copyright © 2004 by Michael Mina - XHTML Next-generation of HTML Next-generation of HTML HTML specification rewritten to be XML compliant HTML specification rewritten to be XML compliant XML is not going to replace HTML, XHTML is XML is not going to replace HTML, XHTML is Differences between HTML, XHTML include: Differences between HTML, XHTML include: –lower case tags required –proper nesting and closure of tags –quoting attributes

Copyright © 2004 by Michael Mina - Parsers A parser is a program that processes an XML document. A parser is a program that processes an XML document. IE includes a parser that allows the rendering of XML documents. IE includes a parser that allows the rendering of XML documents. Parsers are either validating or non-validating. Parsers are either validating or non-validating.

Copyright © 2004 by Michael Mina - Well-formedness An XML document is well-formed if An XML document is well-formed if –attribute values are in quotes –tags are properly nested –start and end tags are the same case –there is one root element –empty elements must be formatted properly If its not well-formed, its not XML If its not well-formed, its not XML

Copyright © 2004 by Michael Mina - Document Type Definition (DTD) Used to specify how elements, attributes, etc. relate to each other Used to specify how elements, attributes, etc. relate to each other DTDs are not XML documents, but are used by them DTDs are not XML documents, but are used by them DTDs do not support data typing DTDs do not support data typing XML Schema was developed in part to address lack of data typing in DTDs XML Schema was developed in part to address lack of data typing in DTDs XML Schemas are also XML documents XML Schemas are also XML documents

Copyright © 2004 by Michael Mina - Document Type Definition (DTD)... ETC.

Copyright © 2004 by Michael Mina - Validating XML An XML document that conforms to its DTD is valid An XML document that conforms to its DTD is valid Validating parsers Validating parsers –IBM's XML4J Parser –IBM's DOMit: A servlet for XML validation –IE itself, modified by installing a download from (iexmltls.exe)

Copyright © 2004 by Michael Mina - Validating XML

Copyright © 2004 by Michael Mina - Validating XML

Copyright © 2004 by Michael Mina - Validating XML

Copyright © 2004 by Michael Mina - XSL Extensible Stylesheet Language Extensible Stylesheet Language Three specifications Three specifications –XSL Transformations (XSLT) –XSL Formatting Objects (XSL-FO) –XPath Previously separate, recently incorporated into XSL Previously separate, recently incorporated into XSL

Copyright © 2004 by Michael Mina - XSLT Transforms XML into other markup languages Transforms XML into other markup languages Often used to transform XML to HTML Often used to transform XML to HTML Limited query-like functionality Limited query-like functionality XSL documents are also XML documents XSL documents are also XML documents

Copyright © 2004 by Michael Mina - An XSL Document SELECT WHERE ORDER BY XSLT Query-like functionality:

Copyright © 2004 by Michael Mina - An XSL Document XSLT XPath HTML CSS Other functionality:

Copyright © 2004 by Michael Mina - XML, XSL and JavaScript Test XML Page var xmlObject = new ActiveXObject("microsoft.xmldom") xmlObject.async = false xmlObject.load("contacts.xml") var xslObject = new ActiveXObject("microsoft.xmldom") xslObject.async = false xslObject.load("contacts.xsl") document.write(xmlObject.transformNode(xslObject))

Copyright © 2004 by Michael Mina - XML, XSL and JavaScript See demo See demo

Copyright © 2004 by Michael Mina - XSL - Formatting Objects Adobe InDesign Adobe InDesign See other information See other information

Copyright © 2004 by Michael Mina - XML and Databases Microsoft SQL Server Microsoft SQL Server Oracle products (various) Oracle products (various) IBM DB2 UDB IBM DB2 UDB

Copyright © 2004 by Michael Mina - Microsoft SQL Server SQL can retrieve results in XML format SQL can retrieve results in XML format Three XML modes: Raw, Auto, Explicit Three XML modes: Raw, Auto, Explicit Raw mode - result row tagged Raw mode - result row tagged Auto mode - more control over tags Auto mode - more control over tags Explicit mode Explicit mode –Default tags - table names, field names –Overwrite by specifying DTD with query –Specify shape of the XML tree –Requires relatively complex SQL queries

Copyright © 2004 by Michael Mina - Oracle Products Oracle 8i was billed as the worlds first XML- enabled database Oracle 8i was billed as the worlds first XML- enabled database Oracle Reports 6i Oracle Reports 6i –Reports can be stored as XSL

Copyright © 2004 by Michael Mina - IBM DB2 UDB DB2 XML Extender DB2 XML Extender –facility to enable DB2 to work with XML Net.Data Net.Data –macro language for DB2 UDB

Copyright © 2004 by Michael Mina - IBM DB2 UDB DB2 XML Extender DB2 XML Extender –Repository for XML and DTDs –Storage methods XML column XML column XML collection XML collection

Copyright © 2004 by Michael Mina - IBM DB2 UDB XML column XML column –Entire XML document stored in one column as an XML UDT –Data Access Definition (DAD) defines indexes based on elements and attributes XML collection XML collection –Relational tables mapped to/from XML –DAD maps DTD to tables and columns

Copyright © 2004 by Michael Mina - IBM DB2 UDB DB2 XML Extender also allows DB2 XML Extender also allows –SQL to query XML based on elements and attributes –Stored procedures to generate XML from DB2

Copyright © 2004 by Michael Mina - IBM DB2 UDB Net.Data Net.Data –Allows conversion of SQL results to XML –Is not restricted to DB2 UDB as a data source

Copyright © 2004 by Michael Mina - XML and Query Languages XPath XPath –not based on XML –limited functionality –relatively difficult to understand XSLT XSLT –based on XML –works with XPath, XSL-FO, HTML, CSS –also has limited functionality

Copyright © 2004 by Michael Mina - XML and Query Languages Per the W3C website: The mission of the XML Query project is to provide flexible query facilities to extract data from real and virtual documents on the World Wide Web, therefore finally providing the needed interaction between the Web world and the database world. Ultimately, collections of XML files will be accessed like databases. (emphasis added)

Copyright © 2004 by Michael Mina - XML Editors - a sampling Microsoft - XML Notepad Microsoft - XML Notepad Wattle Software - XMLWriter Wattle Software - XMLWriter Sonic Software - Stylus Studio Sonic Software - Stylus Studio Altova - XML Spy Altova - XML Spy note: this is not a product endorsement

Copyright © 2004 by Michael Mina - XML Editors - XML Notepad

Copyright © 2004 by Michael Mina - XML Servers/Databases IxiaSoft - TEXTML Server IxiaSoft - TEXTML Server – Software AG - Tamino XML Server Software AG - Tamino XML Server – Ipedo - Ipedo XML Intelligence Platform Ipedo - Ipedo XML Intelligence Platform – note: this is not a product endorsement

Copyright © 2004 by Michael Mina - XML Resources World Wide Web Consortium World Wide Web Consortium – The XML Industry Portal The XML Industry Portal – XML101.com XML101.com – W3 Schools W3 Schools –

Copyright © 2004 by Michael Mina - Thank You For Attending Thank You For Attending Michael Mina