Download presentation
Presentation is loading. Please wait.
Published byTracey Hubbard Modified over 9 years ago
2
XML Basics Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Extensible Meta Language Markup Language
3
Information Information Age Processing Representation Storage Retrieval SearchSharing Management Interchange
4
IS there such a creation ? The Needs for Information Interchange Power Flexibility Simplicity Fault tolerance Scalability Interoperability Open standard Extensible Character-based Human-readable
5
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
6
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
7
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....
8
Basics of XML XML What? Why? Who? Where? When? How?
9
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.
10
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
11
Genealogy of Markup Languages GML (1969) SGML (1985) XML (1998) HTML (1993) XHTMLSVGSMILHDMLOEB IBM ISO 8879 W3C CERN
12
SGML XML Genealogy of Markup Languages HTML XSL
13
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.
14
Traditional vs. Nontraditional Document Information Structure Format Traditional Format InformationStructure Nontraditional
15
Ways of Displaying XML Format Information (Document) Structure (DTD) XSL DHTML + CSS DSSSL CGI + Script
16
Write One Publish Many Idea XML Document Print out CD ROM Web WAP, etc. Process
17
XML for Information Interchange CAD Package Word Processor Statistical Processing Spreadsheet Package XML
18
Demand for Platform Independent Technology InternetXHTML XMLJava Platform DataProcessing Presentation
19
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
20
Selected XML Applications Portals: Enterprise Information Portals (EIP) Syndication: Information and Content Exchange (ICE) Publishing: PC World Online Content Management: Enterprise Data Management
21
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
22
Components of XML Systems XML Parser (Processor) XML Application XML Document (Contents) XML DTD (Rule) Well-Formed (Syntax) Validate (Structure)
23
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.
24
(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
25
Popular Parsers for XML MSXML – Microsoft’s IE Gecko – Netscape IBM XML Parser for Java ( http://alphaworks.ibm.com/tech/xml4j) Data Channel XJ Parser ( http://xdev.datachannel.com ) SUN XML Parser for Java ( http://developer.java.sun.com/developer/earlyAccess/xml/index.html )
26
Thank You? Any Question?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.