XML Basics Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Extensible Meta Language Markup Language.

Slides:



Advertisements
Similar presentations
Chapter 7 An Introduction to XML.
Advertisements

XML INTRODUCTION Prepared by Hongming Yu Modified by Fernando Farfán.
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.
XML XML What XML is and what it means to me as a Computer Scientist By: Derek Edwards CS 376 March 10, 2003.
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
Chapter Concepts Review Markup Languages
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application.
XML A brief introduction ---by Yongzhu Li. XML --- a brief introduction 2 CSI668 Topics in System Architecture SUNY Albany Computer Science Department.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic XML.
XML by Jon Pearce. What is XML? XML = eXstensible Markup Language = a meta language for defining markup languages. Examples: MathML, SVG (Scalable Vector.
DECO 3002 Advanced Technology Integrated Design Computing Studio Tutorial 5 – XML Basic School of Architecture, Design Science and Planning Faculty of.
Introduction to XML: Yong Choi CSU Bakersfield.
W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application with a clean migration path from HTML 4.01 CSS: Style sheets.
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.
XML October 24, Unit 6. What is XML? Stands for eXtensible Markup Language It is a markup language, like HTML But, –XML is designed to markup data –HTML.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Aalborg University – Department of Production XML Extensible Markup Language Kaj A. Jørgensen Aalborg University, Department of Production XML – Extensible.
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
Marco Mesiti Dep. of Computer Science University of Genova XML eXtensible Markup Language.
XML at Work John Arnett, MSc Standards Modeller Information and Statistics Division NHSScotland Tel: (x2073)
Creating a Basic Web Page
WPF chapter 15 Dr. John Abraham Professor UTPA. WPF –an introduction WPF provides a single platform capable of handling graphics, audio and video. WPF.
XML eXtensible Markup Language by Darrell Payne. Experience Logicon / Sterling Federal C, C++, JavaScript/Jscript, Shell Script, Perl XML Training XML.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
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 and Database Interface Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University ODBC JDBC ADO DSO.
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.
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.
XML Extensible Markup Language
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
WEB BASED DATA TRANSFORMATION USING XML, JAVA Group members: Darius Balarashti & Matt Smith.
Windows Presentation Foundation (WPF) Chapter 16 Dr. Abraham.
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI Document.
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.
Web Technologies COMP6115 Session 4: Adding a Database to a Web Site Dr. Paul Walcott Department of Computer Science, Mathematics and Physics University.
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.
Web Application Programming Presented by: Mehwish Shafiq.
XML Presented by Kushan Athukorala. 2 Agenda XML Overview Entity References Elements vs. Atributes XML Validation DTD XML Schema Linking XML and CSS XSLT.
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 –
SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson LIS1510 Library and Archives Automation Issues XML and extensible systems Andy Dawson School.
XML and E-Commerce What is XML? XML means “Extensible Markup Language” extensible - not fixed format like HTML Enables you to define your own customized.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
14/05/2003Christiane Schmidt1 XML – application A presentation about different examples of use.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C - The World Wide Web Consortium W3C - The World Wide Web Consortium.
Introduction to XML Jussi Pohjolainen TAMK University of Applied Sciences.
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
XP 1Creating Web Pages with XML Tutorial 1 New Perspectives on XML Tutorial 1 – Creating an XML Document.
Beyond HTML: Extensible Markup Language (XML)
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.
XML QUESTIONS AND ANSWERS
Session I - Introduction
Session I - Introduction
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
XML Data Introduction, Well-formed XML.
XML Introduction By Hongming Yu Feb 6th, 2002.
Presentation transcript:

XML Basics Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Extensible Meta Language Markup Language

Information Information Age Processing Representation Storage Retrieval SearchSharing Management Interchange

IS there such a creation ? The Needs for Information Interchange  Power  Flexibility  Simplicity  Fault tolerance  Scalability  Interoperability  Open standard  Extensible  Character-based  Human-readable

IS There Such a Creation?  Power  Flexibility  Simplicity  Fault tolerance  Scalability  Interoperability  Open standard  Extensible  Character-based  Human-readable HTML SGML XML XXX ?XXX ??? X XXXX Criteria

Weaknesses of HTML  HTML isn’t extensible – can’t define custom tags.  HTML is display-centric.  HTML isn’t usually directly reusable  HTML only provide one view of data.  HTML has little or no semantic structure.  Getting bigger and slower!  Not fault tolerance. XML will complement, rather than replace, HTML

The Buzz Words Around XML  SVG – Scalable Vector Graphics Language  OFX – Open Financial Exchange  SGML – Standard Generalized Markup Language  DTD – Document Type Definition  DSSSL – Document Style Semantics and Specification Language  CSS – Cascading Style Sheet  XSL – XML Stylesheet Language  DOM – Document Object Model....

Basics of XML XML What? Why? Who? Where? When? How?

What is XML?  XML stands for Extensible Markup Language.  Markup is the code, embedded with the document, which store the information required for electronic processing.  XML is extensible because it predefines no tag but lets the user create tags that are needed for application.  XML is a meta language because it can be used to define markup languages.

Family of Markup Languages  GML – Generalized Markup Language  SGML – Standard Generalized Markup Language  HTML – Hyper Text Markup Language  XML – Extensible Markup Language  XHTML – Extensible Hyper-Text Markup Language  CML - Chemistry Markup Language  MathML – Mathematical Markup Language  SVG – Scalable Vector Graphic  SMIL – Synchronized Multimedia Integration Language  HDML – Handheld Device Markup Language  WML – Wireless Markup Language  OEB – Open eBook Structure Specification

Genealogy of Markup Languages GML (1969) SGML (1985) XML (1998) HTML (1993) XHTMLSVGSMILHDMLOEB IBM ISO 8879 W3C CERN

SGML XML Genealogy of Markup Languages HTML XSL

Advantages of XML  Common language for system-to-system communication  Enables loose connectivity, yet tight integration  Relatively easy to implement conversion from an RDB record to an XML message.  Platform independent  Scalable  XML Signature provides message and party authentication.

Traditional vs. Nontraditional Document Information Structure Format Traditional Format InformationStructure Nontraditional

Ways of Displaying XML Format Information (Document) Structure (DTD) XSL DHTML + CSS DSSSL CGI + Script

Write One Publish Many Idea XML Document Print out CD ROM Web WAP, etc. Process

XML for Information Interchange CAD Package Word Processor Statistical Processing Spreadsheet Package XML

Demand for Platform Independent Technology InternetXHTML XMLJava Platform DataProcessing Presentation

Selected XML Applications Middle-Tier Servers:  Personalized Frequent-Flyer Website  Building an Online Auction Website  Anatomy of an Information Server E-Commerce:  Electronic Data Interchange (EDI)  Collaboration in an e-commerce Supply Web

Selected XML Applications Portals:  Enterprise Information Portals (EIP) Syndication:  Information and Content Exchange (ICE) Publishing:  PC World Online Content Management:  Enterprise Data Management

Selected XML Applications Content Acquisition:  Integrating Legacy Data Schema:  Building a Schema for a Product Catalog Stylesheet:  A Stylesheet-Driven Tutorial Generator. Navigation – Application Integration:  Application Integration Using Topic Map

Components of XML Systems XML Parser (Processor) XML Application XML Document (Contents) XML DTD (Rule) Well-Formed (Syntax) Validate (Structure)

Well Formed Document Here are some general guidelines:  At least one root element.  All elements must contain both start and end tags.  Tags are case sensitive  No overlapping tags. Elements must nest inside each other properly.  Attribute values must be enclosed in quotes.  An empty element must end with “/>”  The text characters ( ) and (“) must always be represented by character entities. Well formed XML documents are those documents that are syntactically correct.

(optional) How a Parser Interprets XML - Validate XML Document Data Type Definition Issue Warning/Stop Processing Further Processing Well Formed? DTD? Valid? Issue Warning/Stop Processing no yes

Popular Parsers for XML  MSXML – Microsoft’s IE  Gecko – Netscape  IBM XML Parser for Java (  Data Channel XJ Parser ( )  SUN XML Parser for Java ( )

Thank You? Any Question?