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

Steve Holden sholden at holdenweb.com
Mon Mar 5 11:35:49 EST 2001


"Martin von Loewis" <loewis at informatik.hu-berlin.de> wrote in message
news:j48zmko6nl.fsf at informatik.hu-berlin.de...
> 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?
>
> Sure. But why does it have to preserve comments?
>
I would say "because that particular application is using XML as a tool for
human communication" -- obviously no XML application in its right mind would
require input to be formatted. The comments, being primarily for humans,
should therefore be preserved.

begs-the-question-of-how,-of-course-ly y'rs  - steve





More information about the Python-list mailing list