XML and newlines
Fredrik Lundh
fredrik at pythonware.com
Sun Feb 17 03:24:15 EST 2002
Hans Nowak wrote:
> Either way, my question is, is there a way to parse the XML
> *and* somehow preserve the newlines in the string?
as Paul pointed out, XML parsers are supposed to normalize
whitespace in attribute values.
if you want non-standard XML behaviour, you have to use
lower-level toolkits. I suggest building your own DOM builder
based on the sgmlop scanner:
http://effbot.org/sgmlop.htm
</F>
More information about the Python-list
mailing list