xml.sax removing newlines from attribute value?

Fredrik Lundh fredrik at pythonware.com
Thu Sep 29 16:04:35 EDT 2005


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> 






More information about the Python-list mailing list