
24 z/TPF and WebSphere Application Server in a Service Oriented Architecture
There are two basic rules that you must follow:
Each opening tag <tag> should have a corresponding closing tag </tag>.
If elements are nested, the closing tags have to appear in reverse order of the opening
tags.
To make a document more readable to humans, the elements are usually indented according
to the nesting level as shown in Example 2-5.
Example 2-5 Correct nesting of elements
<employee>
<lastname>Smith</lastname>
<firstname>John</firstname>
<department>XYZ</department>
<phone>555-1212</phone>
</employee>
2.3.2 Special characters
An XML document is a text based document ...