Can SAX parser return <!-- COMMENTS --> ???

piet at cs.uu.nl piet at cs.uu.nl
Mon Mar 5 11:10:23 EST 2001


>>>>> Martin von Loewis <loewis at informatik.hu-berlin.de> (MvL) writes:

MvL> Piet van Oostrum <piet at cs.uu.nl> writes:
MvL> It is a matter of ongoing debate whether applications should even deal
MvL> with comments; if an application needs XML comments for proper
MvL> operation, something is wrong with that application.
>> 
>> What about a prettyprinter? Doesn't that count as an application?

MvL> Sure. But why does it have to preserve comments?

Prettyprinters are mostly used to make things more readable for human
beings. Comments are meant to be read by humans. So if a prettyprinter
deletes the comments it looses a big part of its value.
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl



More information about the Python-list mailing list