xml.sax removing newlines from attribute value?
Grant Edwards
grante at visi.com
Thu Sep 29 16:11:35 EDT 2005
On 2005-09-29, Fredrik Lundh <fredrik at pythonware.com> wrote:
>>> http://www.w3.org/TR/REC-xml/#AVNormalize
>>
>> I can't quite find it in the BNF, but I take it that chr(10)
>> isn't really allowed in XML attribute strings. IOW, the file
>> generate by Trolltech's app is broken.
>
> it's allowed, but the parser must not pass it on to the application.
>
> (in other words, whitespace in attributes doesn't, in general, survive
> roundtripping)
Ah, I see. That's good to know.
[This is my first attempt at anything XMLish.]
--
Grant Edwards grante Yow! I know how to do
at SPECIAL EFFECTS!!
visi.com
More information about the Python-list
mailing list