Upload
justin-cook
View
223
Download
0
Embed Size (px)
Citation preview
8/14/2019 XML (Extensible Markup Language) XML 1st Version Released
1/11
XML (Extensible Markup
Language)
XML 1st version Released
1998
Till date XML 1.0 (1st version)
Towards data storage, the
alternative for HTML is provided
one language, which is called
XML.
XML as a storage can be used for
following cases.
To improve performance of web
server by maintaining offline
storage:
8/14/2019 XML (Extensible Markup Language) XML 1st Version Released
2/11
Offline storage means a temporary
storage that is not connected to
database server.
Interaction takes place
Transmission of data from oneserver to another server by
maintaining platform independency:
WEB SERVER
DATABASE
SERVER
Producttable
Product
table (in
XML form)
CLIENT 1
1
CLIENT 2
CLIENT 3
CLIENT 4
8/14/2019 XML (Extensible Markup Language) XML 1st Version Released
3/11
That means data can be transferred
from one web server to another web
server without depending onoperating system. It can be used
both on LINUX and Windows.
Basics of XML:
HTML is required for Web pagePresentation
XML is required for data storage.
We use XML document for data
storage.
It can be of two types.
1.Ordinary XML document.
It goes with only data storage
without any format.
8/14/2019 XML (Extensible Markup Language) XML 1st Version Released
4/11
2.Well-formed XML document.It stores the data in a formatted
way.i.e with some standards or
rules.
The rules which has to be followedfor XML document are,
The extension of filename is
(.XML).
XML is case sensitive.XML supports user-defined tags.
i.e. storage
User defined tag
100
This user-defined tag will providemeaning for the data.
8/14/2019 XML (Extensible Markup Language) XML 1st Version Released
5/11
The tag name should start with
alphabet or underscore.
(dont start with . Symbol)
XML supports only container tags.
XML document can have only
one-root element.
Example:
100 < /empno>
add
----
8/14/2019 XML (Extensible Markup Language) XML 1st Version Released
6/11
EmpinfoXML document emp.
XML
XML PARSER: This is software,
which will interpret the XML
document.
There are two types of XML parsers.
Dom Parser (Document Object
Model Parser)This parser will act as a compiler,
but it will read the complete XML
document and writes to the
temporary memory in the
hierarchical structure and providesthis memory reference to the client
application.
8/14/2019 XML (Extensible Markup Language) XML 1st Version Released
7/11
Sax Parser (Simple API For XML
Parser)
This will act as an interpreter,because it can read the data from the
XML document, Based on event
occurrence, this will not store the
data into the temporary memory.
This is also called as event basedparser.
Dom parser provides more
flexibility in the programming of
client application but consumes
certain amount of memory.
Sax parser does not provide
flexibility but consumes less amount
of memory.
Microsoft is providing DOM parserimplementation towards its
software. (Like VC++, VB,.Net etc)
8/14/2019 XML (Extensible Markup Language) XML 1st Version Released
8/11
Sun Microsystems supports sax
parser mostly.
Microsoft Internet explore 5.0and onwards
Built-in DOM parser
VB
6.0
Asp
3.0. Net
Supports
DOM
parser
Example:
HTML Web PageClientApplication XML document [i.e.
emp. XML]
8/14/2019 XML (Extensible Markup Language) XML 1st Version Released
9/11
XML tag (Under HTML)
It will send a request to
HTML interpreter to activate XML
parser [i.e. MSXML.DLL]
The parser will load XML document
into memory.
This temporary memory is termed as
XMLISLAND
8/14/2019 XML (Extensible Markup Language) XML 1st Version Released
10/11
8/14/2019 XML (Extensible Markup Language) XML 1st Version Released
11/11
When you want to implement set of
rules and validations on XML
document. Then we require DTD
implementation.