Re: xml.sax removing newlines from attribute value?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: xml.sax removing newlines from attribute value?

From: Fredrik Lundh <fredrik@pythonware.com>
Date: Thu Sep 29 2005 - 22:04:35 CEST

Grant Edwards 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)

</F>
Received on Sat Oct 15 03:57:41 2005