26.01.2019 Views

XML Simplified

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Module 1<br />

Introduction to <strong>XML</strong><br />

Note: The process of manipulating an <strong>XML</strong> document is called as <strong>XML</strong> Parsing. The parser loads the<br />

document into the memory. After the document is loaded into the memory, Document Object Model<br />

(DOM) manipulates the data.<br />

Even though <strong>XML</strong> has many advantages, it has a few disadvantages too. Some of the disadvantages are<br />

as follows:<br />

Concepts<br />

‣ ¾ Usage of <strong>XML</strong> leads to increase in data size and processing time. Since <strong>XML</strong> uses Unicode<br />

encoding set for characters, it also consumes more memory.<br />

‣ ¾ <strong>XML</strong> lacks adequate amount of processing instructions. If the process of translation is not used,<br />

then the developers globally are forced to prepare their own processing instructions to display<br />

<strong>XML</strong> in the required form.<br />

‣ ¾ <strong>XML</strong> is more demanding and difficult as compared to HTML.<br />

‣ ¾ <strong>XML</strong> is verbose and wordy as the tags used in it are predefined.<br />

‣ ¾ Versions of Internet Explorer (IE) earlier than 5.0 do not support <strong>XML</strong>.<br />

Knowledge Check 1<br />

1. Which of the following statements are true and which are false in the case of <strong>XML</strong>?<br />

(A)<br />

(B)<br />

(C)<br />

(D)<br />

(E)<br />

<strong>XML</strong> was designed to describe data.<br />

<strong>XML</strong> tags are predefined.<br />

<strong>XML</strong> consists of rules to identify and define different parts of the document.<br />

<strong>XML</strong> offers a standard way to add markup to documents.<br />

<strong>XML</strong> forms the basis to create languages like WAP and WML.<br />

2. Which of the statements about <strong>XML</strong> are true and which of the statements are false?<br />

(A)<br />

(B)<br />

(C)<br />

(D)<br />

(E)<br />

<strong>XML</strong> describes its data along with its presentation.<br />

Client reduces the server load by sending large amount of information in one <strong>XML</strong> document<br />

to the server.<br />

<strong>XML</strong> uses only XSLT to be transformed to HTML.<br />

<strong>XML</strong> can be implemented as middle-tier for client server architectures.<br />

<strong>XML</strong> allows data exchange as it has no formatting instructions.<br />

<strong>XML</strong> <strong>Simplified</strong><br />

Version 1.0 © Aptech Limited

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!