XML::Simple is not a parser! XML::Simple uses XML::SAX or XML::Parser if they are installed, and in this order of preference.Indeed. My bad.
The questions is that by default a content of a node that only have spaces is just ignored...Using the SuppressEmpty option, you can specify how an element containing only whitespace is ignored, and not if it is ignored.
or we will always have content if the XML tree is idented.I don't understand this part of your reply.
Referring to the question of the OP: "Is there any way to force XML::Simple to keep the spaces?". The answer is "No, there isn't". Elements consisting of only empty spaces are ignored, and the only thing you can control is whether they appear in the resulting hash as an empty string, undef, or not at all.
Arjen
In reply to Re: Re: Re: XML::Simple and <tag> </tag>
by Aragorn
in thread XML::Simple and <tag> </tag>
by Jenda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |