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 />

1.3.3 Meaning in Markup<br />

Markup can be divided into following three parts:<br />

‣ ¾ Structure<br />

Concepts<br />

It describes the form of the document by specifying the relationship between different elements<br />

in the document. It emphasizes to specify a single non-empty, root element that contains other<br />

elements and the content.<br />

‣ ¾ Semantic<br />

Semantics describes how each element is specified to the outside world of the document. For<br />

example, an HTML enabled Web browser assigns "paragraph" to the tags and but not to<br />

the tags and .<br />

‣ ¾ Style<br />

It specifies how the content of the tag or element is displayed. It indicates whether the tag is bold,<br />

normal, and pink in color or with the font size 10.<br />

1.3.4 Well-formed <strong>XML</strong> Document<br />

Well-formedness refers to the standards that are to be followed by the <strong>XML</strong> documents. Well-formedness<br />

makes <strong>XML</strong> processors and browsers read <strong>XML</strong> documents. A document is well formed, if it fulfills the<br />

following rules:<br />

‣ ¾ Minimum of one element is required<br />

Every well formed <strong>XML</strong> document should consist of a minimum of one element.<br />

‣ ¾ <strong>XML</strong> tags are case sensitive<br />

All the tags used are case sensitive, that is is different from .<br />

‣ ¾ Every start tag should end with end tag<br />

All the tags in <strong>XML</strong> should begin with a start tag and a matching end tag. The end tags only have<br />

an additional forward slash as compared to their start tag.<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!