[XML-SIG] How to get 4DOM to output empty <elements />

Andrew M. Kuchling akuchlin@mems-exchange.org
Mon, 8 May 2000 18:19:33 -0400 (EDT)


Michael Hudson writes:
><img src="blah.gif"></img>
>which I don't *think* is valid XHTML; certainly validator.w3.org
>doesn't like it.  

Then the validator is broken; the XML 1.0 spec says "If an element is
empty, it must be represented either by a start-tag immediately
followed by an end-tag or by an empty-element tag."  (Unless XHTML
specifies that only the empty-element tag is legal.  In which the
XHTML spec is what's broken.)

Can't say off-hand if there's a way to make 4DOM produce empty-element
tags; don't have the source code here at work...

--amk