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

Michael Hudson mwh21@cam.ac.uk
10 May 2000 08:12:49 +0100


Uche Ogbuji <uogbuji@fourthought.com> writes:

> A) Should the default for printing empty XML elements be the short
> or long form?  Any different for HTML (note that the CVS 4DOM fixes
> bugs with HTML 4.0 elements forbidden to have an end tag).

CVS 4DOM?  This won't entirely help; but tho only tag I have that is
sometimes empty and sometimes not is <a>; I'd still like to see

<a name="blah"></a> => <a name="blah" />
 
> B) Should the printers accept optional argumuments that are lists of
> elements to always shorten if empty (or vice-versa if the answer to
> A is "yes)
> 
> I say "yes" to both of the above.

Me too, but what do I know...

Thanks,
Michael

-- 
  There are 'infinite' number of developed artifacts and one cannot
  develop appreciation  for them all.  It would be all right to not
  understand something, but it would be imbecilic to put judgements
  on things one don't understand.              -- Xah, comp.lang.lisp