[XML-SIG] Preserving Whitespace

Matthias Kirst matt@clondiag.com
Tue, 11 Dec 2001 17:28:55 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_001C_01C18269.4EEF7F20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'm using xml.minidom for parsing XML-Documents.
Is it possible to preserve the whitespaces (tabs  ....) in the =
attributes of an element?
I tried the xml:space =3D "preserve" attribute but I got a KeyError: =
"Mapping key not found" from the parser.
I'm using Python 2.1.1, PyXML 0.6.5. The parser used is the standard =
parser (pyexpat I think).

If somebody came along this problem, please help.

Thanks,
Matthias( matt@clondiag.com )
=20

------=_NextPart_000_001C_01C18269.4EEF7F20
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4208.1700" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I'm using xml.minidom for parsing=20
XML-Documents.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Is it possible to preserve the =
whitespaces=20
(tabs&nbsp; ....) in the attributes of an element?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I tried the xml:space =3D "preserve" =
attribute but I=20
got a KeyError: "Mapping key not found"&nbsp;from the =
parser.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm using Python 2.1.1, PyXML 0.6.5. =
The=20
parser&nbsp;used is the standard parser&nbsp;(pyexpat I =
think).</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If somebody came along this problem, =
please=20
help.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Matthias( <A=20
href=3D"mailto:matt@clondiag.com">matt@clondiag.com</A> )</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_001C_01C18269.4EEF7F20--