in reply to XML::Simple and newlines
The reply from Wonko the sane is correct. The reason you're seeing this effect is that the XML recommendation mandates some whitespace normalisation rules that must be applied by XML parsers when reading attributes. Unfortunately not all XML parser modules work exactly the same way, but the simple rule is that if you don't want your whitespace messed with, don't store it in an attribute.
|
|---|