On 2002.05.16, Bob Hutchison <hutch / xampl.com> wrote:
> Either
> 
> <a
>   ><b
>      ><c>C</c
>      ></b
>   ></a
> >
> 
> or (ugh)
> 
> <a
>   ><b
>      ><c>C</c></b></a>

Ooh, good point.

> or any number of other variations. These don't add white space. Careful
> about the whitespace rules in XML you cannot break up "<a" or "</a".
> 
> If you have a DTD and i) you define it correctly; and ii) I remember
> correctly, then this:
> 
> <a>
>   <b>
>     <c>C</c>
>   </b>
> </a>
> 
> does not introduce white space unless <a> and <b> are defined to have mixed
> content.

Right.  Element content says that whitespace is optional, while
mixed content says that whitespace is actually part of the character
data.

*sigh*

-- Dossy

-- 
Dossy Shiobara                       mail: dossy / panoptic.com 
Panoptic Computer Network             web: http://www.panoptic.com/ 
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)