[XML-SIG] [ pyxml-Bugs-407288 ] tabs inside attribute values removed

Lars Marius Garshol larsga@garshol.priv.no
12 Mar 2001 21:56:14 +0100


* nobody@sourceforge.net
|
| Bugs #407288, was updated on 2001-03-09 04:15
| [...]
| Initial Comment:
|
| i am having to pre-process all text, substituting
| 	 for "\t" as a work-around for this problem.
| 
| if this is not performed, then all tabs inside
| attribute's values, e.g.
| <node attr="value\tsep\tby\ttabs"/>, are turned into
| spaces.

This is the correct behaviour for an XML parser, as mandated by the
XML recommendation:

  <URL: http://www.w3.org/TR/REC-xml#AVNormalize >
 
| i am storing python code in an attribute value, so i
| _must_ have my tabs!!! :) :)

Then you must encode them correctly. :-)

--Lars M.