By: Shawn Li. OUTLINE XML Definition HTML vs. XML Advantage of XML Facts Utilization SAX Definition DOM Definition History Comparison between SAX and.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 8-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Advertisements

1/7 ITApplications XML Module Session 8: Introduction to Programming with XML.
Lecture 11 Server Side Interaction
XML Craig Stewart Dr. Alexandra I. Cristea
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
XML Parsing Using Java APIs AIP Independence project Fall 2010.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application.
XML DOM and SAX Parsers By Omar RABI. Introduction to parsers  The word parser comes from compilers  In a compiler, a parser is the module that reads.
XML A brief introduction ---by Yongzhu Li. XML --- a brief introduction 2 CSI668 Topics in System Architecture SUNY Albany Computer Science Department.
CS 898N – Advanced World Wide Web Technologies Lecture 15: Dynamic HTML Chin-Chih Chang
HTML 4 - Introduction HTML stands for Hyper Text Markup Language. It is the standard format for documents on the World Wide Web. Just as Microsoft Word.
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
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.
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
1st Project Introduction to HTML.
Chapter 13 XML Concept of XML Simple Example of XML XML vs. HTML in Syntax XML Structure DTD and CDATA Sections Concept of SAX Processing Download and.
Introduce of XML Xiaoling Song CS157A. What is XML? XML stands for EXtensible Markup Language XML stands for EXtensible Markup Language XML is a markup.
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.
INTRODUCTION TO WEB DATABASE PROGRAMMING
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
XML at Work John Arnett, MSc Standards Modeller Information and Statistics Division NHSScotland Tel: (x2073)
4.1 JavaScript Introduction
Application XML Enabling A Holistic Approach SYSTEK Information Technology.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
Pemrograman Berbasis WEB XML -Aurelio Rahmadian- Sumber: w3cschools.com.
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.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
Electronic Commerce COMP3210 Session 4: Designing, Building and Evaluating e-Commerce Initiatives – Part II Dr. Paul Walcott Department of Computer Science,
Web Programming : Building Internet Applications Chris Bates CSE :
XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
XML Extensible Markup Language
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
WEB BASED DATA TRANSFORMATION USING XML, JAVA Group members: Darius Balarashti & Matt Smith.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Scripting with the DOM Ellen Pearlman Eileen Mullin Programming the Web.
CS 331 – Programming LanguagesDate: Internet Programming Group Presenter: Aren Ray Topics: Internet Programming XML.
WEB APPLICATION DEVELOPMENT For More visit:
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.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
XML stands for Extensible Mark-up Language XML is a mark-up language much like HTML XML was designed to carry data, not to display data XML tags are not.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
XML Parser. 2 Microsoft XML data by itself cannot do anything; you need to process that data to do something meaningful. The software that processes XML.
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 –
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
1 Introduction JAXP. Objectives  XML Parser  Parsing and Parsers  JAXP interfaces  Workshops 2.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C - The World Wide Web Consortium W3C - The World Wide Web Consortium.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
Martin Kruliš by Martin Kruliš (v1.1)1.
XML. HTML Before you continue you should have a basic understanding of the following: HTML HTML was designed to display data and to focus on how data.
XML Tools (Chapter 4 of XML Book). What tools are needed for a complete XML application? n Fundamental components n Web infrasructure n XML development.
Dave Salinas. What is XML? XML stands for eXtensible Markup Language Markup language, like HTML HTML was designed to display data, whereas XML was designed.
Introduction to the World Wide Web & Internet CIS 101.
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
XML DOM Week 11 Web site:
I Copyright © 2004, Oracle. All rights reserved. Introduction.
DHTML.
XML Parsers Overview Types of parsers Using XML parsers SAX DOM
Unit – 5 JAVA Web Services
Project 1 Introduction to HTML.
XML in Web Technologies
XML Parsers Overview Types of parsers Using XML parsers SAX DOM
XML Introduction By Hongming Yu Feb 6th, 2002.
En eventueel een subtitel om de nieuwsgierigheid aan te wakkeren
En eventueel een subtitel om de nieuwsgierigheid aan te wakkeren
Web Programming : Building Internet Applications Chris Bates CSE :
Extensible Markup Language (XML)
XML and Web Services (II/2546)
Presentation transcript:

By: Shawn Li

OUTLINE XML Definition HTML vs. XML Advantage of XML Facts Utilization SAX Definition DOM Definition History Comparison between SAX and DOM When to use

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 tags are not predefined. You must define your own tags XML is designed to be self-descriptive XML is a W3C Recommendation XML is used for the representation of arbitrary data structure

What to retain from that?

HTML vs. XML representation

Advantages of XML Readability XML document is plain text and human readable, To edit/view XML documents any simple text editor will suffice Hierarchical XML document has a tree structure which is powerful enough to express complex data and simple enough to understand Language Independent XML documents are language neutral. For e.g. a Java program can generate a XML which can be parsed by a program written in C++ or Perl OS Independent XML files are Operating System independent

Facts about XML XML is Everywhere XML is now as important for the Web as HTML was to the foundation of the Web. XML is the most common tool for data transmissions between all sorts of applications. XML became a W3C Recommendation on February 10, With XML You Invent Your Own Tags XML language does not have any predefined tags, they are invented by the author.

XML - utilization Messaging Where applications or organizations exchanges data between them Database The data extracted from the database can be preserved with original information and can be used for more than one application in different ways. Service Oriented Architecture (SOA) The neutral and generalized format are ideal for data exchange because to simplify reuse of program components the individual services need to send and receive data in general formats.

XML – utilization (Continue) As of 2009, hundreds of document formats using XML has been developed, this includes:  RSS  Atom  SOAP  XHTML

XML – utilization (Continue) Default based format for many applications and tools: Microsoft Office OpenOffice LibreOffice Apple’s iWork Microsoft.NETFramework configuration Apple’s registry

What is SAX? SAX stands for Simple API for XML SAX is an event-based parser API for XML documents SAX provides a mechanism for reading data from an XML document

What is DOM? DOM stands for Document Object Model DOM is a cross-platform and language independent convention DOM represents and interacts with object in HTML, XHTML, and XML.

History of DOM Legacy -> Intermediate -> standardization Legacy Netscape Communication released Javascript in 1996 and Microsoft released Jscript the same year. Able to detect user-generated events and modifying the HTML document Netscape Navigator 2.0 and IE 3.0

History of DOM (Continue) Legacy -> Intermediate -> standardization Intermediate Netscape and Microsoft released version 4.0 of Netscape Navigator and IE respectively in Dynamic HTML, enabling changes to a loaded HTML document. Incompatible to each other’s browser.

History of DOM (Continue) Legacy -> Intermediate -> standardization Standardization World wide web brought Netscape and Microsoft together to developed ECMAScript, standardized scripting language. Then…. DOM 1, 2, 3, 4

COMPARISON - SAX Parses node by node Doesn’t store the XML in memory Cannot insert or delete a node Doesn’t preserve comments Generally runs a little faster than DOM Stream-based processor Tiny part in memory at a time

COMPARISON - DOM Store the entire XML document Occupies more memory Can insert or delete nodes Traverse in any direction Preserve comments Slower in speed compare to SAX

When to use? SAX: No structural modification Huge XML files. So this is most practical in working with large datasets. DOM: Manipulate the document Traverse the document back and forth Small XML file