xml applications

60
XML APPLICATIONS XML APPLICATIONS Hevel Jean-Baptiste Orson Kirk Kwang Lee Vera Rhoads Dennis Williams

Upload: rhea

Post on 21-Jan-2016

30 views

Category:

Documents


0 download

DESCRIPTION

XML APPLICATIONS. Hevel Jean-Baptiste Orson Kirk Kwang Lee Vera Rhoads Dennis Williams. XML APPLICATIONS. OUTLINE. Introduction to XML – Kwang Lee DB2 Interface – Orson Kirk XML and Web Content Management – Vera Rhoads XML Jabber – Dennis Williams XML Parser – Hevel Jean-Baptiste. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: XML APPLICATIONS

XML APPLICATIONSXML APPLICATIONS

Hevel Jean-Baptiste

Orson Kirk

Kwang Lee

Vera Rhoads

Dennis Williams

Page 2: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 2

XML APPLICATIONSXML APPLICATIONS

Introduction to XML – Kwang Lee DB2 Interface – Orson Kirk XML and Web Content Management – Vera Rhoads XML Jabber – Dennis Williams XML Parser – Hevel Jean-Baptiste

OUTLINE

Page 3: XML APPLICATIONS

Introduction to XMLIntroduction to XML

Page 4: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 4

Introduction to XML Introduction to XML

XML is a method for putting structured data in a text file.

XML looks like HTML, but it isn’t.

XML is text, but isn’t meant to be read.

Page 5: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 5

Introduction to XMLIntroduction to XML

XML is a family of technologies.

XML is verbose, but that is not a problem.

XML is new, but not that new.

XML is license-free, platform-independent and well supported.

Page 6: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 6

Introduction to XMLIntroduction to XMLKey Reasons for Using XML

0 10 20 30 40 50 60

% of respondents

Joining an E-commerce trading hub or B-to-Bexchange that uses XML

Ties applications to those of supplier and trading partners

Ties applications to those of customers

Ties together multiple internal applicationsacross the company

Allows conversion of EDI data to more manageable form

XML-enabled business processes will shorten business cycles

Will shorten application development time

Can perform new operations on the dataonce it’s in XML form

Broadens enterprise search capabilities

Data: ZONA RESEARCH 3Q 2000 XML STUDY

Page 7: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 7

Key Barriers to XML Use

0 10 20 30 40 50 60

% of respondents

Performance of secure XML systems isn’t yet satisfactory

Complexity of XML projects is intimidating

Cost-benefits for XML processing not established

Management doesn’t understand XML

Tools aren’t matureIndustry standards for XML schema aren’t establishedStandards for embedding business processes aren’t matureUnresolved security concerns about data access

DATA: ZONA RESEARCH

Introduction to XMLIntroduction to XML

Page 8: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 8

Introduction to XMLIntroduction to XML What is an XML?

<xml version="1.0"?><!DOCTYPE exchange [<!ELEMENT exchange (greeting, response)><!ELEMENT greeting (#PCDATA)><!ELEMENT response (#PCDATA)><ATTLIST greeting mode (warm|luke-warm|cool|cold) "warm" <!-- "warm is

the default -->>]><exchange> <greeting mode="warm" wording="semi-formal">Hello,

XML</greeting><response> Hello, what can I do for you?</response></exchange>

Page 9: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 9

Introduction to XMLIntroduction to XML

What is DTD?– Is a document type definition. A DTD is not

required by XML document, but may be very useful.

Page 10: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 10

DB2 INTERFACE

Page 11: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 11

Database Solutions for Storing Database Solutions for Storing and Retrieving XML and Retrieving XML

DocumentsDocuments

Page 12: XML APPLICATIONS

IBM’s DB2 Relational IBM’s DB2 Relational Database with the XML Database with the XML

ExtenderExtender

Page 13: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 13

XML Extender FeaturesXML Extender Features

XML document retrieval and generation from SQL queries

XML document storagedata management functions

Page 14: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 14

XML document retrievalXML document retrieval

Query syntax adheres to W3C standards Extensive Stylesheet Language Transformation(XSLT) and XML Path Language(Xpath)

entire documents can be retrieved XML elements can be dynamically

extracted

Page 15: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 15

XML document generationXML document generation

XML Extender provides stored procedures to generate XML documents from existing data stored in DB2 tables

Page 16: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 16

XML document storageXML document storage

DB2’s XML Extender Serves as a Repository for XML documents and their document type definitions (DTDs)

an entire document can be stored as an XML user-defined column

the document can be decomposed into multiple tables and columns

Page 17: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 17

XML column optionXML column option

Document stored as user-defined type column

three XML user-defined types(UDTs): XMLCLOB, XMLVARCHAR and XMLfile

user-defined functions provided for insert, select and update operations

Page 18: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 18

UDTsUDTs

XMLCLOB and XMLVARCHAR store an XML document as a CLOB and a VARCHAR respectively in DB2

XMLFile stores an XML document as a file on a local file system

Page 19: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 19

XML collectionXML collection

An XML collection is a set of relational tables that contain data mapped to an XML document

Data access definition(DAD) is used to define the mapping of document type definitions(DTD) to relational tables and columns

stored procedures for select, insert, update

Page 20: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 20

XML column Vs XML XML column Vs XML collectioncollection

XML column provides a simple way to manage XML documents and provides fast searching and indexing capabilities

ideal for static data not frequently updatedbetter performance since no need to

compose the document from DB2 data

Page 21: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 21

XML collection provides a better mapping for an XML document which consists of multiple collections

XML collection also supports existing DB2 data by providing a mechanism to generate an XML document for data interchange

Page 22: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 22

Provides Data Management Provides Data Management FunctionsFunctions

Data integritysecurityrecoverabilitymanageability

Page 23: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 23

Invoking DB2 XML ExtenderInvoking DB2 XML Extender

You can invoke DB2 XML Extender in a data access JavaBean through WebSphere or in a Net.Data macro

It can be used with DB2 or any ODBC-compliant database

Page 24: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 24

Other Database SolutionsOther Database Solutions

Microsoft SQL ServerOracle’s Oracle8i database

Page 25: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 25

DB2 Interface - ConclusionDB2 Interface - Conclusion

IBM DB2 XML Extender and DB2 Universal Net.Data provide an end-to-end solution for storing and retrieving XML documents for business-to-business and business-to-consumer (with a browser) processing.

Page 26: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 26

XML and Web Content

Management

Page 27: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 27

XML and Web Content XML and Web Content ManagementManagement

Web Content Management – DefinitionMulti-channel Publishing

– localization for specific markets– personalized delivery– customized presentation on different devices

Page 28: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 28

XML and Web Content XML and Web Content ManagementManagement

XML promotes re-useXML tools as a core component for multi-

channel publishing web content management system suites.

Structured content and XML-based tools enable an infrastructure for transforming content based on the target application and delivery platform.

Page 29: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 29

XML and Web Content XML and Web Content ManagementManagement

Adding Semantics to Syntax

Page 30: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 30

XML and Web Content XML and Web Content ManagementManagement

Key components of the XML family that impact multi-channel publishing include:

XSL-Transformations (XSLT)Extensible Hypertext Markup Language

(XHTML)

XLL – eXtentible Link Language

Page 31: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 31

XML and Web Content XML and Web Content Management Management

CSS

Limitation – they only represent data within the context of the original HTML data structure

XSL

Flexibility – allows presentation dramatically different from the original XML

It Is a Question of Style –Separation of It Is a Question of Style –Separation of Presentation From DataPresentation From Data

Page 32: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 32

XML and Web Content XML and Web Content ManagementManagement

XLL enables you to:Control the precise semantics of the linkLink from one to many resources rather

than today’s limit of one resourceDivert to another resource via indirection

using extended pointers

Page 33: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 33

XML and Web Content XML and Web Content Management- Management-

To DTD or not DTD?To DTD or not DTD?DTD - Document Type DescriptorDTD is not essential but useful because it

allows applications to validate the XML for proper usage

When an XML page is served a wrapper must generated for each XML fragment including pointer to the associated DTD and to any XSL for formatting.

Page 34: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 34

XML and Web Content XML and Web Content ManagementManagement

Vertical Industry Examples

eBooks NITF newspapers Syndication (ICE)

WCM examples Interwoven Vignette

Page 35: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 35

XML and Web Content XML and Web Content ManagementManagement

Benefits of XML in Web Content Management:

- Ease of Interchange- Reusability- Speed- Standards and Consistency- Multiple Devices

Page 36: XML APPLICATIONS

Jabber:Jabber:XML-basedXML-based

Instant MessagingInstant Messaging

Page 37: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 37

XML Applications - JABBERXML Applications - JABBER

Instant messaging (IM) enables users to communicate in text based conversations in real-time.

IM is the fastest growing communication function on the internet.– Over 1 billion IMs sent every day.

IM clients:– AOL IM (AIM), ICQ, MSN, Yahoo & Jabber

Page 38: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 38

XML Applications - JABBERXML Applications - JABBER

WHY?

Page 39: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 39

XML Applications - JABBERXML Applications - JABBER

IM refers more to a user’s (entity’s) “PRESENCE”.

Today presence takes the concrete form of the “buddy list”.

With IM & presence you have an open channel for communication

Page 40: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 40

XML Applications - JABBERXML Applications - JABBER

Remember Dr. Blum

Email is a degraded form of communication – because it lacks real-time

IM provides that sense of real-time in a light weight structure.

Page 41: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 41

XML Applications - JABBERXML Applications - JABBER

IM & Presence will become even more important in the future of computing.

Why? Because we are moving more toward a ubiquitous form of computing.

I believe that the combination will become the basis for the next “killer” application.

Page 42: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 42

XML Applications - JABBERXML Applications - JABBER

Jabber - is an XML-based, open-source system and protocol for real-time messaging and presence notification.

Page 43: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 43

XML Applications - JABBERXML Applications - JABBER

Jabber clients and servers connect via XML streams. The Jabber protocol consists of three types of XML “fragments” or packets:– Messages– Presence– Info/Query

Page 44: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 44

XML Applications - JABBERXML Applications - JABBER

Benefits of Jabber’s XML architecture:– Easy integration into other programs & systems– Provides structure and intelligence– Functions across platforms and operating

systems– Extensible protocol:

Grows beyond “instant chat” to “instant data transactions”

Page 45: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 45

XML Applications - JABBERXML Applications - JABBER

Jabber-As-Middleware (JAM) XMLRPC over JabberJabber SQL Database Module (Q2

2001)

GROOVE(not a Jabber product)

Page 46: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 46

XML Applications - JABBERXML Applications - JABBER

Jabber may well become the foundation for a message-oriented communications infrastructure that moves XML messages between applications.

Jamie Lewis

InternetWeek

2-13-2001

Page 47: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 47

XML Applications - JABBERXML Applications - JABBER

Jabber.org – Home of open source Jabber IM server project.

JabberCentral.org – End user news and support site.

Jabber.com – Commercial site

Excellent Jabber article:– www2.linuxjournal.com/lj-issues/issue77/4195.html

Page 48: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 48

XML Parser

Page 49: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 49

XML Parser Part IXML Parser Part I

What is an XML ParserWhat is an XML?What is DTD?What is an element root?What is Unicode?What is a valid XML?Creating XML DocumentCreating XML DTD

Page 50: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 50

XML Parser Part IXML Parser Part I

What is an XML Parser– An XML Parser is a processor that reads an

XML document and determines the structure and properties of the data. If the parser goes beyond the XML rules for well-formedness and validates the document against an XML DTD, the parser is said to be a “validating” parser

Page 51: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 51

XML Parser Part IXML Parser Part I

What is an element root?– Every XML document has one element that

contains all other elements of the document. The root element is also called the document element.

Page 52: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 52

XML Parser Part IXML Parser Part I

What is Unicode?– Unicode is a standards for representing

characters from languages around the world. Unicode standards are synchronized with UCS-2 subset of ISO 10646

Page 53: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 53

XML Parser Part IXML Parser Part I

What is a valid XML?An XML document with an associated

document type declaration that follows all the rules of that declaration is valid.

Page 54: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 54

XML Parser Part IXML Parser Part I

Creating XML Document– Start and end –tags– Attribute assignments– Entity references– Comments– Processing instructions– CDATA sections– Document type declarations

Page 55: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 55

XML Parser Part IXML Parser Part I

Creating XML DTD– What the element type is named– What elements of that type can contain (known

as its content model)– What attributes an element of that type has

associated with it

Page 56: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 56

XML Parser Part IIXML Parser Part II

Different ParsersParser Demo

Page 57: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 57

XML Parser Part IIXML Parser Part II

Different types of Parsers– IBM– SUN– Microsoft– etc

Page 58: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 58

XML Parser Part IIXML Parser Part II

Parser Demo

Page 59: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 59

XML APPLICATIONSXML APPLICATIONS

QUESTIONS?

Page 60: XML APPLICATIONS

03/24/2001 Pace Univeristy - DPS 60

XML APPLICATIONSXML APPLICATIONS

THANK YOU FOR YOUR ATTENTION

Please visit our team page at