The end of every element that begins with a start-tag must be marked by an end-tag containing a name that echoes the element's
type as given in the start-tag. The text between the start-tag and end-tag is called the element's content. An element without
content can take a special form: <name/> . The slash before > substitutes the end tag.
Well-formed documents |
HOME
|
Each element has either the end tag or takes the special form. There is no difference between <AAA></AAA> and <AAA/> in XML.:
<listOfTags> <AAA></AAA> <BBB></BBB> <CCC/> <DDD/> </listOfTags> |
Documents with errors |
HOME
|
Missing slash is a very common error:
<description> There are <color>yellow<color> and <color>red</color> apples. </description> |