[XML-SIG] SAX: distinguising empty and non-empty elements?

Martin v. Loewis martin@v.loewis.de
02 Sep 2002 06:45:09 +0200


Lars Marius Garshol <larsga@garshol.priv.no> writes:

> | Is there a possibility to distinguish between non-empty elements w/o
> | content and empty elements in (Python) Sax? 
> 
> No. The distinction is considered to be a purely lexical distinction
> with no more importance than the difference between &#7E; and &#7e;.

Of course, if you process the DTD, you can tell the difference, right?
So an application that wants to make the distinction can, no?

Regards,
Martin