[XML-SIG] Removing Whitespace

Tonguç Yumruk tongucyumruk@interaktif.gen.tr
Wed, 23 Apr 2003 14:40:57 +0300


--gKMricLos+KVdGMg
Content-Type: text/plain; charset=iso-8859-9
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I'm new to Python & XML processing, and I'm in trouble with whitespace. I
use xml.dom to process xml and Sax2.Reader() from xml.dom.ext.reader. I
don't want the whitespace interpreted as a text node. Although the
Reader() class have some option like keepAllWs I don't think it really
does what I need.

When I browsed the archives the only whitespace problem I can see is at
1999 and there is a strip_whitespace function that solved it. The roblem
is: There is no strip_whitespace in Python 2.1.3 (the default in
Debian).

I know that I can write a function to do this but I want to use the
standard approach for it (if possible).

Thanks

--=20
Love Respect Linux
###########################################################################=
#####
If I allowed "next $label" then I'd also have to allow "goto $label",
and I don't think you really want that...  :-)
             -- Larry Wall in <1991Mar11.230002.27271@jpl-devvax.jpl.nasa.g=
ov>
###########################################################################=
#####
Tongu=E7 Yumruk

--gKMricLos+KVdGMg
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+pnvJ1xWu4MLSyoYRApy1AJ9ajzlAGWjJUtvjcaJTczwpsQfdhQCfQCe7
D70qbpseW/1YSYchDWVk3SI=
=b2bJ
-----END PGP SIGNATURE-----

--gKMricLos+KVdGMg--