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

Description

The name in an element's end-tag must match the element type in the start-tag. Names are case-sensitive

Well-formed documents


The end-tag </book> matches the start-tag <book> :


<book>This is a book</book>


This well formed document contains 4 different elements <list>, <item>, <ITEM> and <Item>:


<list>

<item>Car</item>

<ITEM>Plane</ITEM>

<Item>Train</Item>

</list>


Documents with errorsTop


:


<list>

<item>Car</itm>

<item>Plane</ITEM>

<item>Train</item> 

</list>