xml.minidom is stripping out my CRLF's in attrib values!!
Ahmad Baitalmal
ahmad at NOSPAMbitbuilder.com
Mon Sep 9 07:55:55 EDT 2002
That's not what my problem is, that I know about ( crlf's between nodes),,
Here is the deal:
<cow>
<hide value="spotted
with black and white"></hide>
</cow>
After the word "spotted" there is a crlf, -inside- the attribute value.
Sholdn't it be treated as part of the value?
The value now comes stripped of that crlf.
Martin v. Löwis wrote:
> Ahmad Baitalmal <ahmad at NOSPAMbitbuilder.com> writes:
>
>
>>What's the deal, is there a setting I can set?
>
>
> XML specifies that line endings must be normalized by a processor, see
>
> http://www.w3.org/TR/REC-xml#sec-line-ends
>
> There is no option to report anything but #xA to the application.
>
> Regards,
> Martin
>
--
- - -- ---- ----------------------------------------- --- -- - -
*Ahmad Baitalmal***
*BitBuilder***
web: http://www.bitbuilder.com
- - -- ----
-------------------------------------------------------------- --- -- - -
More information about the Python-list
mailing list