[XML-SIG] Preserving Whitespace

Juergen Hermann Juergen Hermann" <jhe@webde-ag.de
Tue, 11 Dec 2001 18:01:38 +0100


--_=_=_=IMA.BOUNDARY.HTML_4924592=_=_=_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Whitespace in attribute values is normalized. Always.

--Original Message Text---
From: Matthias Kirst
Date: Tue, 11 Dec 2001 17:28:55 +0100

I'm using xml.minidom for parsing XML-Documents.
Is it possible to preserve the whitespaces (tabs  ....) in the attribute=
s of an element?
I tried the xml:space =3D "preserve" attribute but I got a KeyError: "Ma=
pping key not found" from the 
parser.
I'm using Python 2.1.1, PyXML 0.6.5. The parser used is the standard par=
ser (pyexpat I think).
 
If somebody came along this problem, please help.
 
Thanks,
Matthias( matt@clondiag.com )
 




Ciao, J=FCrgen

--
J=FCrgen Hermann, Developer (jhe@webde-ag.de)
WEB.DE AG, http://webde-ag.de/


--_=_=_=IMA.BOUNDARY.HTML_4924592=_=_=_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML>


<FONT FACE=3D"Lucida Console" DEFAULT=3D"FACE"><FONT SIZE=3D"2" POINTSIZ=
E=3D"10" DEFAULT=3D"SIZE">Whitespace in attribute values is normalized. =
Always.<BR>
<BR>
--Original Message Text---<BR>
<B>From:</B> Matthias Kirst<BR>
<B>Date:</B> Tue, 11 Dec 2001 17:28:55 +0100<BR>
<BR>
<FONT FACE=3D"Arial">I'm using xml.minidom for parsing XML-Documents.<FO=
NT FACE=3D"Lucida Console" DEFAULT=3D"FACE"><BR>
<FONT FACE=3D"Arial">Is it possible to preserve the whitespaces (tabs  .=
...) in the attributes of an element?<FONT FACE=3D"Lucida Console" DEFAU=
LT=3D"FACE"><BR>
<FONT FACE=3D"Arial">I tried the xml:space =3D "preserve" attribute but =
I got a KeyError: "Mapping key not found" from the parser.<FONT FACE=3D"=
Lucida Console" DEFAULT=3D"FACE"><BR>
<FONT FACE=3D"Arial">I'm using Python 2.1.1, PyXML 0.6.5. The parser use=
d is the standard parser (pyexpat I think).<FONT FACE=3D"Lucida Console"=
 DEFAULT=3D"FACE"><BR>
 <BR>
<FONT FACE=3D"Arial">If somebody came along this problem, please help.<F=
ONT FACE=3D"Lucida Console" DEFAULT=3D"FACE"><BR>
 <BR>
<FONT FACE=3D"Arial">Thanks,<FONT FACE=3D"Lucida Console" DEFAULT=3D"FAC=
E"><BR>
<FONT FACE=3D"Arial">Matthias( <FONT COLOR=3D0000ff><U>matt@clondiag.com=
<FONT COLOR=3D000000 DEFAULT=3D"COLOR"></U> )<FONT FACE=3D"Lucida Consol=
e" DEFAULT=3D"FACE"><BR>
 <BR>
<BR>
<FONT COLOR=3D000000 DEFAULT=3D"COLOR"><BR>

</HTML>

<HTML>
<LEFT>
<FONT FACE=3D"Lucida Console" COLOR=3D"#000001" SIZE=3D"2" POINTSIZE=3D"=
10" DEFAULT=3D"ALL">
<br>
Ciao,&nbsp;J=FCrgen<br>
<br>
--<br>
J=FCrgen&nbsp;Hermann,&nbsp;Developer&nbsp;(jhe@webde-ag.de)<br>
WEB.DE&nbsp;AG,&nbsp;http://webde-ag.de/</HTML>

--_=_=_=IMA.BOUNDARY.HTML_4924592=_=_=_--