26.01.2019 Views

XML Simplified

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Module 1<br />

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

References to these entities are made by using percent-sign (%) and semicolon (;) as delimiters.<br />

The following code demonstrates an example of parameter entity.<br />

Code Snippet:<br />

Concepts<br />

<br />

A well-formed parameter entity will look like a general entity, except that it will include the "%"<br />

specifier.<br />

1.4.8 Doctype Declarations<br />

The doctype declaration defines the elements to be used in the document.<br />

A doctype declaration is declared to indicate what DTD the document adheres to. It can be declared<br />

either in the <strong>XML</strong> document or can reference an the external document.<br />

Syntax:<br />

The syntax of document type declaration is as follows:<br />

<br />

where,<br />

name_of_root_element is the name of the root element.<br />

SYSTEM is the URL where the DTD is located.<br />

[Internal DTD subset] are those declarations that are in the document.<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!