package main;
use strict;
use warnings;
use Test::More tests => 2;
use Data::Dumper;
$Data::Dumper::Indent = 0;
$Data::Dumper::Sortkeys = 1;
use XML::Hash::XS 'xml2hash';
$XML::Hash::XS::keep_root = 0;
our $xml_decl_utf8 = qq{};
{
is
Dumper(xml2hash('', utf8 => 0)),
Dumper({ a => "abc\302\240def&\'<>\"" }),
'references in the attribute',
;
}
{
is
xml2hash('&abc def&<>"'', utf8 => 0),
"&abc\302\240def&<>\"'",
'references in the content',
;
}