[XML-SIG] DOM: Whitespace, and subclassing
Jack Jansen
Jack.Jansen@cwi.nl
Wed, 21 Oct 1998 11:17:08 +0200
> Question 1: Does such a lose-the-whitespace method seem
> generally useful enough to be added to the package?
I would prefer a wrapper around dom that simply wouldn't return the
whitespace, in stead of actually stripping it (what it would do with inserts,
whether they'd be placed before are after non-returned-whitespace, is open to
discussion).
If this is the idiom of choice then a program that reads an xml document,
modifies it and writes it out again will probably leave comments and the
majority of formatting intact.
--
Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@cwi.nl | ++++ if you agree copy these lines to your sig ++++
http://www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm