SE452: XML continued [17/24] Previous pageContentsNext page

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:

  1. It has a single root element.
  2. All start-tags are matched by end-tags, and vice versa
  3. All start-tags and end-tags are properly nested.

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.

Previous pageContentsNext page