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

<strong>XML</strong> Schema<br />

An element in the xml document will be:<br />

Concepts<br />

<br />

Note: Unicode character is a character that has two bytes as its size.<br />

4.2.2 Additional Data Types<br />

Additional data types are derived from the basic built-in data types, which are called base type data<br />

types.<br />

The generated or derived data types, supported by the <strong>XML</strong> schema include:<br />

‣ ¾ integer<br />

The base type for integer is the numeric data type. It includes both positive and negative numbers.<br />

For example, the numbers -2, -1, 0, 1, 2 are integers. The integer data type is used to specify a<br />

numeric value without a fractional component.<br />

Syntax:<br />

<br />

Code Snippet:<br />

The integer declaration in the schema is:<br />

<br />

An element in the xml document will be:<br />

999<br />

‣ ¾ decimal<br />

It can represent exact fractional parts such as 3.26. The basetype for decimal is the number data<br />

type. The decimal data type is used to specify a numeric value.<br />

Syntax:<br />

<br />

Version 1.0 © Aptech Limited<br />

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

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

Saved successfully!

Ooh no, something went wrong!