XML::Simple is Evil [was Re: [Israel.pm] Hebrew to UTF-8, completely out of ideas!]
Scott Weisman
sweisman at pobox.com
Mon Oct 25 00:59:57 PDT 2004
david istermann wrote:
> Hi,
>
>
>>How do you represent something like that:
>>
>><p>
>>Hello <b>World</b>!.
>></p>
>
> =====QUOTE=====
> Mixed content (elements which contain both text content and nested
> elements) will not be represented in a useful way - element order and
> significant whitespace will be lost. If you need to work with mixed
> content , then XML::Simple is not the right tool for your job.
> =====END QUOTE=====
You can use Tie::IxHash to preserve order. It obviously has some
overhead, but when needed worked great. I use it extensively.
Scott
More information about the Perl
mailing list