>> English << | česky | Español | Português | Türkçe | Nederlands | По-русски | Deutsch | Français | Italiano | 中文 | ქართული | Magyar | PolskiZVON > Tutorials > XML Tutorial
>> Example 2 << | Prev | Next | Contents

Description

There is exactly one element, called the root, or document element, no part of which appears in the content of any other element.

Well-formed documents


<book> is root element :


<book>This is a book</book>


<list> is root element:


<list>

<item>Item 1</item>

<item>Item 2</item>

<item>Item 3</item>

</list>


Documents with errorsTop


Only one root element is permitted:


???

<item>Item 1</item>

<item>Item 2</item>

<item>Item 3</item> 

???