Professional Documents
Culture Documents
Three-tier Architecture
E-book:
(1) Database Management System, Third
Edition, RamakrishnanGehrke
(2) Professional XML Databases, Kevin William
Faculty of Information Science 1
Outline
• What is XML
– Elements
– Attributes
– Entity References
– Comment
• Document Type Declarations (DTD)
• Three-tier Application Architecture
• The other four reserved characters are &, >, ", and '; they are represented by the
entities amp, gt, quot, and apos.
• For example, the text '1 < 5' has to be encoded in an XML document as follows:
' 1&1t ; 5'. We can also use entities to insert arbitrary Unicode
characters into the text.
Reference: List of XML and HTML character entity references From Wikipedia, the
free encyclopedia
<!ELEMENT project_team
<?xml version="1.0" encoding="UTF-8"?>
(member*)> <!DOCTYPE project_team SYSTEM
<!ELEMENT member "project_team.dtd">
(name, gender?, birthday?)> <project_team>
<!ELEMENT name (#PCDATA)> <member>
<!ELEMENT gender (#PCDATA)> <name>John</name>
<!ELEMENT birthday <gender>Male</gender>
(#PCDATA)> </member>
<member>
<name>Yoichi</name>
<birthday>August 28, 1961</birthday>
</member>
</project_team>
– Single-Tier
• Initially, data-intensive applications were
combined into a single tier, including the DBMS,
application logic, and user interface, as illustrated
in this figure.
• The application typically ran on a mainframe,
and users accessed it through dumb terminals
that could perform only data input and display.
Benefit : being easily maintained by a central administrator.