xml.dom.minidom - bug ? future ?

"Martin v. Löwis" martin at v.loewis.de
Thu Sep 4 15:53:18 EDT 2003


Roman Yakovenko wrote:

> 	Hi. What I don't understand is why I dump to xml string that contains
> new - lines and when I read it from xml new lines replaced by spaces. 
> May be I do something wrong?

You should not use new line characters in attribute values. According to 
the XML specification, the XML processor must replace them with white 
space, see

http://www.w3.org/TR/REC-xml#AVNormalize

Regards,
Martin





More information about the Python-list mailing list