in reply to XML::Simple bug? aka I want the whitespace dude!
It is not a bug, as this is the claimed behaviour of XML::Simple as other monks pointed out.
It is a bug if we are talking about XML specification. XML specification clearly defined what an “empty element” is. An empty element has no content, even no white spaces. This indicates that white spaces in the content of a white space only element still should be preserved. (Of course you can choose to strip it, but that is a different story.)
|
|---|