Presentation is loading. Please wait.

Presentation is loading. Please wait.

XML and Database Interface Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University ODBC JDBC ADO DSO.

Similar presentations


Presentation on theme: "XML and Database Interface Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University ODBC JDBC ADO DSO."— Presentation transcript:

1

2 XML and Database Interface Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University ODBC JDBC ADO DSO

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 Potential Applications of XML  Three-Tier Applications:  Personalized Web Site  On-Line Auction  E Commerce  Integration  Content Acquisition  Content Management  Portals  Publishing  Databases  Schemas management  Product Catalog  E-commerce vocabulary  Voice Transformation  Mobile XML Voice  Semantic Web  Knowledge Navigation  Metadata Description  Topic maps  Web services  Infrastructure

7 Types of Information Sharing  Information Posting /Publishing: Paper; CD-ROM; HTML/XHTML.  Data Integration: cXML (Ariba); tpaML (IBM); xCBL (ConmmerceOne); BizTalk (Microsoft); eCo (CommerceNet); eConcert (RosettaNet); ebXML (UN/CEFACT and OASIS).  Automated Trading: Electronic Data Interchange (EDI).

8 XML for Information Interchange CAD Package Word Processor Statistical Processing Spreadsheet Package XML XSL CSS XSL CSS

9 XSL CSS XML and Databases Interface XML Document Print out CD ROM Web WAP, etc. RDBMS OODBMS Other DBMSs ADO ODBC JDBC

10 XML Application Interfaces  ADO: ActiveX Data Objects  DOM: Document Object Model  DSO: Data Source Object  ODBC: Open DataBase Connectivity  JDBC: Java DataBase Connectivity  CSS: Cascading Style Sheets  XSL – XML Stylesheet Language

11 Wireless Integration XML HTML WML ASP / Java

12 XML XSL ASP / Java Wireless Integration

13 Application Interfaces for XML Document XML Application XML Parser XML DOM SAX DOM:Document Object Model SAX:Simple APIs for XML

14 ADO ODBC JDBC XSL CSS XML Application Connectors XML Document Print out CD ROM Web WAP, etc. RDBMS OODBMS Other DBMSs Applications DOM SAX

15 XML Information Retrieval Mechanism Application Programs / Browsers DOMDSO CSSXSL XML Documents XML SQL Data SQL Server Oracle Others ADO HTTP + SQL ODBC JDBC

16 Example of ADO <% dim cConn, rsData 'connects to the Access driver and Access database strProvider = "Driver={Microsoft Access Driver (*.mdb)}; DBQ="& server.mappath ("ROSTER.mdb") 'creates an instance of an Active Server component set cConn = Server.CreateObject("ADODB.Connection") 'opens the connection to the data base cConn.Open strProvider ‘SQL Query Set rsData = cConn.Execute("select * from roster") %>

17 Example of ODBC <% dim cConn, rsData ‘Setup ODBC Connection (ROSTER ID:sa) 'creates an instance of an Active Server component set cConn = Server.CreateObject("ADODB.Connection") 'opens the connection to the data base cConn.Open "ROSTER","sa","" ‘SQL Query Set rsData = cConn.Execute("select * from roster") %>

18 ODBC Example 2 <%set conn=server.createobject ("adodb.connection") conn.open "driver={Microsoft Access Driver (*.mdb)}; dbq="& server.mappath ("ROSTER.mdb") set rs=conn.execute("select * from roster") do while not rs.eof %>

19 ODBC Example 2 <% rs.movenext loop %>

20 DBMSs That Support XML  Oracle 8 i (1999): http://technet.oracle.com/tech/xml  Microsoft SQL Server (2000): http://support.microsoft.com/support/kb/articles/Q 271/6/20.ASP http://support.microsoft.com/support/kb/articles/Q 271/7/80.ASP  Informix (2000): http://www.informix.com/xml/  XML Repository (2001): http://www.ozone-db.org/ozone_main.html

21 Thank You? Any Question?


Download ppt "XML and Database Interface Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University ODBC JDBC ADO DSO."

Similar presentations


Ads by Google