1 / 60

XML APPLICATIONS

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.

rhea
Télécharger la présentation

XML APPLICATIONS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. 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 Pace Univeristy - DPS

  3. Introduction to XML

  4. 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. Pace Univeristy - DPS

  5. 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. Pace Univeristy - DPS

  6. 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 Pace Univeristy - DPS

  7. Introduction to XML 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 Pace Univeristy - DPS

  8. Introduction 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> Pace Univeristy - DPS

  9. Introduction to XML • What is DTD? • Is a document type definition. A DTD is not required by XML document, but may be very useful. Pace Univeristy - DPS

  10. DB2 INTERFACE Pace Univeristy - DPS

  11. Database Solutions for Storing and Retrieving XML Documents Pace Univeristy - DPS

  12. IBM’s DB2 Relational Database with the XML Extender

  13. XML Extender Features • XML document retrieval and generation from SQL queries • XML document storage • data management functions Pace Univeristy - DPS

  14. 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 Pace Univeristy - DPS

  15. XML document generation • XML Extender provides stored procedures to generate XML documents from existing data stored in DB2 tables Pace Univeristy - DPS

  16. 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 Pace Univeristy - DPS

  17. 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 Pace Univeristy - DPS

  18. 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 Pace Univeristy - DPS

  19. 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 Pace Univeristy - DPS

  20. 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 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 Pace Univeristy - DPS

  22. Provides Data Management Functions • Data integrity • security • recoverability • manageability Pace Univeristy - DPS

  23. 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 Pace Univeristy - DPS

  24. Other Database Solutions • Microsoft SQL Server • Oracle’s Oracle8i database Pace Univeristy - DPS

  25. 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. Pace Univeristy - DPS

  26. XML and Web Content Management Pace Univeristy - DPS

  27. XML and Web Content Management • Web Content Management – Definition • Multi-channel Publishing • localization for specific markets • personalized delivery • customized presentation on different devices Pace Univeristy - DPS

  28. 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. Pace Univeristy - DPS

  29. XML and Web Content Management Adding Semantics to Syntax Pace Univeristy - DPS

  30. 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 Pace Univeristy - DPS

  31. 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 XML and Web Content Management It Is a Question of Style –Separation of Presentation From Data Pace Univeristy - DPS

  32. 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 Pace Univeristy - DPS

  33. 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. Pace Univeristy - DPS

  34. Vertical Industry Examples eBooks NITF newspapers Syndication (ICE) WCM examples Interwoven Vignette XML and Web Content Management Pace Univeristy - DPS

  35. XML and Web Content Management Benefits of XML in Web Content Management: • Ease of Interchange • Reusability • Speed • Standards and Consistency • Multiple Devices Pace Univeristy - DPS

  36. Jabber:XML-basedInstant Messaging

  37. 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 Pace Univeristy - DPS

  38. XML Applications - JABBER WHY? Pace Univeristy - DPS

  39. 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 Pace Univeristy - DPS

  40. 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. Pace Univeristy - DPS

  41. 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. Pace Univeristy - DPS

  42. XML Applications - JABBER • Jabber - is an XML-based, open-source system and protocol for real-time messaging and presence notification. Pace Univeristy - DPS

  43. 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 Pace Univeristy - DPS

  44. 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” Pace Univeristy - DPS

  45. XML Applications - JABBER • Jabber-As-Middleware (JAM) • XMLRPC over Jabber • Jabber SQL Database Module (Q2 2001) • GROOVE (not a Jabber product) Pace Univeristy - DPS

  46. 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 Pace Univeristy - DPS

  47. 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 Pace Univeristy - DPS

  48. XML Parser Pace Univeristy - DPS

  49. 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 Pace Univeristy - DPS

  50. 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 Pace Univeristy - DPS

More Related