XML - XML Declaration

> Markup Language (ML) > Extensible Markup Language (XML)

1 - About

Each XML documents SHOULD begin with an XML declaration which specifies the version of XML being used.

<?xml version="1.0"?>
<greeting>Hello, world!</greeting> 

3 - Attribute

3.1 - Version

The version of XML being used.

<?xml version="1.0"?>
Advertising

3.2 - Standalone

In a standalone document declaration, the value “yes” indicates that there are no external markup declarations which affect the information passed from the XML processor to the application.

<?xml version="1.0" standalone='yes'?>

4 - Documentation / Reference