RE: Mixed content and empty content

> 
> What I'm not sure about is, given:
> 
>     <xsd:element name="foo">
>         <xsd:complexType/>
>     </xsd:element>
> 
> Is:
>     <foo>
>     </foo>
> 
> a valid instance, i.e. is whitespace forbidden in an empty element?
> 

Empty is a special case of element-only content, and whitespace is always
allowed in element-only content. I think.

Michael Kay
http://www.saxonica.com/

Received on Thursday, 1 November 2007 12:54:25 UTC