Subject: | XMLin(XMLout(...)) not the same |
Contrary to the documentation of XMLout ("If the resulting XML is parsed using XMLin() it will return a data structure equivalent to the original")
the resulting data structure is not the same in the sample script above.
Regards,
Slaven
#!/usr/bin/perl -w
# -*- perl -*-
#
# $Id: $
# Author: Slaven Rezic
#
# Copyright (C) 2003 Slaven Rezic. All rights reserved.
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
#
# Mail: slaven@rezic.de
# WWW: http://www.rezic.de/eserte/
#
use XML::Simple;
use Data::Compare;
$outdata = { data => { de => { ct => "bla" } } };
$outdata2 = XMLin(XMLout($outdata));
warn Compare($outdata, $outdata2);
require Data::Dumper; print STDERR "Line " . __LINE__ . ", File: " . __FILE__ . "\n" . Data::Dumper->new([$outdata,$outdata2],[])->Indent(1)->Useqq(1)->Dump; # XXX