
But in the following case, it sees the content of name as just fname and
lname. No indenting.
<name><fname>Jack</fname><lname>Smith</lname></name>
It is easy to filter unwanted whitespaces and most applications do it. For
example, XSL (XML Style Sheet Language) ignores what it recognizes as
indenting.
Likewise, some XML editors give you the option of indenting source code
automatically. If they indent the code, they will ignore indenting in the doc-
ument.
If whitespaces are important for your document, then you should use the
xml:space attribute that was introduced earlier.
Why the End Tag?
At first, the need to terminate each element with an end tag ...