Download presentation
Presentation is loading. Please wait.
2
XML APPLICATIONS Hevel Jean-Baptiste Orson Kirk Kwang Lee Vera Rhoads Dennis Williams
3
03/24/2001Pace Univeristy - DPS2 XML 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
4
Introduction to XML
5
03/24/2001Pace Univeristy - DPS4 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.
6
03/24/2001Pace Univeristy - DPS5 Introduction 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.
7
03/24/2001Pace Univeristy - DPS6 Introduction to XML Joining an E-commerce trading hub or B-to-B exchange that uses XML Ties applications to those of supplier and trading partners Ties applications to those of customers Ties together multiple internal applications across 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 data once it’s in XML form Broadens enterprise search capabilities Data: ZONA RESEARCH 3Q 2000 XML STUDY
8
03/24/2001Pace Univeristy - DPS7 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 mature Industry standards for XML schema aren’t established Standards for embedding business processes aren’t mature Unresolved security concerns about data access DATA: ZONA RESEARCH Introduction to XML
9
03/24/2001Pace Univeristy - DPS8 Introduction to XML What is an XML? <!DOCTYPE exchange [ <ATTLIST greeting mode (warm|luke-warm|cool|cold) "warm" > ]> Hello, XML Hello, what can I do for you?
10
03/24/2001Pace Univeristy - DPS9 Introduction to XML What is DTD? – Is a document type definition. A DTD is not required by XML document, but may be very useful.
11
03/24/2001Pace Univeristy - DPS10 DB2 INTERFACE
12
03/24/2001Pace Univeristy - DPS11 Database Solutions for Storing and Retrieving XML Documents
13
IBM’s DB2 Relational Database with the XML Extender
14
03/24/2001Pace Univeristy - DPS13 XML Extender Features XML document retrieval and generation from SQL queries XML document storage data management functions
15
03/24/2001Pace Univeristy - DPS14 XML 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
16
03/24/2001Pace Univeristy - DPS15 XML document generation XML Extender provides stored procedures to generate XML documents from existing data stored in DB2 tables
17
03/24/2001Pace Univeristy - DPS16 XML 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
18
03/24/2001Pace Univeristy - DPS17 XML 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
19
03/24/2001Pace Univeristy - DPS18 UDTs 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
20
03/24/2001Pace Univeristy - DPS19 XML 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
21
03/24/2001Pace Univeristy - DPS20 XML column Vs XML collection XML column provides a simple way to manage XML documents and provides fast searching and indexing capabilities ideal for static data not frequently updated better performance since no need to compose the document from DB2 data
22
03/24/2001Pace Univeristy - DPS21 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
23
03/24/2001Pace Univeristy - DPS22 Provides Data Management Functions Data integrity security recoverability manageability
24
03/24/2001Pace Univeristy - DPS23 Invoking 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
25
03/24/2001Pace Univeristy - DPS24 Other Database Solutions Microsoft SQL Server Oracle’s Oracle8i database
26
03/24/2001Pace Univeristy - DPS25 DB2 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.
27
03/24/2001Pace Univeristy - DPS26 XML and Web Content Management
28
03/24/2001Pace Univeristy - DPS27 XML and Web Content Management Web Content Management – Definition Multi-channel Publishing – localization for specific markets – personalized delivery – customized presentation on different devices
29
03/24/2001Pace Univeristy - DPS28 XML and Web Content Management XML promotes re-use XML 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.
30
03/24/2001Pace Univeristy - DPS29 XML and Web Content Management Adding Semantics to Syntax
31
03/24/2001Pace Univeristy - DPS30 XML and Web Content Management Key components of the XML family that impact multi-channel publishing include: XSL-Transformations (XSLT) Extensible Hypertext Markup Language (XHTML) XLL – eXtentible Link Language
32
03/24/2001Pace Univeristy - DPS31 XML and Web Content 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 Presentation From Data
33
03/24/2001Pace Univeristy - DPS32 XML and Web Content Management XLL enables you to: Control the precise semantics of the link Link from one to many resources rather than today’s limit of one resource Divert to another resource via indirection using extended pointers
34
03/24/2001Pace Univeristy - DPS33 XML and Web Content Management- To DTD or not DTD? DTD - Document Type Descriptor DTD 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.
35
03/24/2001Pace Univeristy - DPS34 XML and Web Content Management Vertical Industry Examples eBooks NITF newspapers Syndication (ICE) WCM examples Interwoven Vignette
36
03/24/2001Pace Univeristy - DPS35 XML and Web Content Management Benefits of XML in Web Content Management: - Ease of Interchange - Reusability - Speed - Standards and Consistency - Multiple Devices
37
Jabber: XML-based Instant Messaging
38
03/24/2001Pace Univeristy - DPS37 XML 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
39
03/24/2001Pace Univeristy - DPS38 XML Applications - JABBER WHY?
40
03/24/2001Pace Univeristy - DPS39 XML 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
41
03/24/2001Pace Univeristy - DPS40 XML 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.
42
03/24/2001Pace Univeristy - DPS41 XML 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.
43
03/24/2001Pace Univeristy - DPS42 XML Applications - JABBER Jabber - is an XML-based, open-source system and protocol for real-time messaging and presence notification.
44
03/24/2001Pace Univeristy - DPS43 XML 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
45
03/24/2001Pace Univeristy - DPS44 XML 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”
46
03/24/2001Pace Univeristy - DPS45 XML Applications - JABBER Jabber-As-Middleware (JAM) XMLRPC over Jabber Jabber SQL Database Module (Q2 2001) GROOVE (not a Jabber product)
47
03/24/2001Pace Univeristy - DPS46 XML 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
48
03/24/2001Pace Univeristy - DPS47 XML 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
49
03/24/2001Pace Univeristy - DPS48 XML Parser
50
03/24/2001Pace Univeristy - DPS49 XML Parser Part I What is an XML Parser What is an XML? What is DTD? What is an element root? What is Unicode? What is a valid XML? Creating XML Document Creating XML DTD
51
03/24/2001Pace Univeristy - DPS50 XML 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
52
03/24/2001Pace Univeristy - DPS51 XML 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.
53
03/24/2001Pace Univeristy - DPS52 XML 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
54
03/24/2001Pace Univeristy - DPS53 XML 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.
55
03/24/2001Pace Univeristy - DPS54 XML Parser Part I Creating XML Document – Start and end –tags – Attribute assignments – Entity references – Comments – Processing instructions – CDATA sections – Document type declarations
56
03/24/2001Pace Univeristy - DPS55 XML 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
57
03/24/2001Pace Univeristy - DPS56 XML Parser Part II Different Parsers Parser Demo
58
03/24/2001Pace Univeristy - DPS57 XML Parser Part II Different types of Parsers – IBM – SUN – Microsoft – etc
59
03/24/2001Pace Univeristy - DPS58 XML Parser Part II Parser Demo
60
03/24/2001Pace Univeristy - DPS59 XML APPLICATIONS QUESTIONS?
61
03/24/2001Pace Univeristy - DPS60 XML APPLICATIONS THANK YOU FOR YOUR ATTENTION Please visit our team page at
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.