SE452: XML continued [17/24] ![]() ![]() ![]() |
Empty-tags and start-tags may have attributes
<Context path="" docBase="webapps/ROOT" debug="0" reloadable="true" />
Each attribute is a name-value pair.
Attribute values must be enclosed between quotation marks.
An XML document is well-formed if:
The following segments are not well-formed: <a> <b> </b> </c> <a> <b> </a> </b>
A well-formed XML document forms a tree of elements.
An XML document may impose further restrictions on its structure using a DTD (Document Type Definition) or XML schema.
An XML document is valid, if it is well-formed and satisfies the restrcitions imposed by a DTD or schema.