Download An Introduction to Enterprise Systems

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
XML and Database Interface
Chao-Hsien Chu, Ph.D.
School of Information Sciences and Technology
The Pennsylvania State University
Information Age
Processing
Storage
Search
Management
Information
Retrieval
Sharing
Interchange
Representation
The Needs for Information Interchange










Power
Flexibility
Simplicity
Fault tolerance
Scalability
Interoperability
Open standard
Extensible
Character-based
Human-readable
IS
there
such a
creation ?
IS There Such a Creation?










Criteria
HTML SGML XML
Power
Flexibility
Simplicity
Fault tolerance
Scalability
Interoperability
Open standard
Extensible
Character-based
Human-readable
X
X
?
?
?
X
X
X
?
?
X
X
X
X
X
X
X
X
?
?
X
X
X
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
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).
XML for Information Interchange
Word
Processor
Spreadsheet
Package
XML
Statistical
Processing
CAD
Package
XML and Databases Interface
Print out
RDBMS
CD ROM
OODBMS
XML
Document
Web
Other
DBMSs
WAP, etc.
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
Wireless Integration
XML
HTML
WML
ASP / Java
Wireless Integration
XML
XSL
ASP / Java
Application Interfaces for XML
XML
DOM
XML
XML
Application
SAX
Parser
Document
DOM: Document Object Model
SAX: Simple APIs for XML
XML Application Connectors
Applications
Print out
RDBMS
CD ROM
OODBMS
XML
Document
Web
Other
DBMSs
WAP, etc.
XML Information Retrieval Mechanism
Application Programs / Browsers
HTTP + SQL
XML SQL
Data
SQL Server Oracle
Others
DOM
ADO
ODBC
JDBC
DSO
CSS
XML
Documents
XSL
Example of ADO
<%@language = "VBScript" %>
<% Response.ContentType ="text/xml" %>
<%
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")
%>
Example of ODBC
<%@language = "VBScript" %>
<% Response.ContentType ="text/xml" %>
<%
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")
%>
ODBC Example 2
<%@language = "VBScript" %>
<?xml version = "1.0" standalone = "no"?>
<?xml-stylesheet type="text/xsl" href="roster.xsl"?>
<Roster>
<%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
%>
ODBC Example 2
<Student>
<Name> <%=rs("Name")%> </Name>
<Residence> <%=rs("Residence")%> </Residence>
<Age> <%=rs("Age")%> </Age>
<Telephone> <%=rs("Telephone")%> </Telephone>
</Student>
<%
rs.movenext
loop
%>
</Roster>
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
Thank You?
Any Question?
Related documents