In XML terminology, a pair of start and end tags is an element.
|
XML documents allow only one root element.
|
XML documents must have a strict hierarchical structure.
-
All start tags must have an end tag.
-
Any element must be properly nested within another. <LI> XML requires <B><I>proper nesting</I></B>.</LI>
|
Empty tags are allowed as elements in XML documents.
-
An empty tag is a start and end tag together and is identified by a trailing / after the tag name. <LI>XML requires empty tags, such as <BR/>.</LI>
-
A start tag and end tag with nothing in-between can also be considered an empty tag. <IMG SRC="face.gif"></IMG>
|