use warnings;
use strict;
use Data::Dumper;
+use Storable;
=head1 NAME
use strict;
use base qw/WebPAC::Common WebPAC::Normalize/;
-use Storable;
use XML::Simple;
use Data::Dumper;
use Text::Iconv;
=head2 _x
-Convert string from UTF-8 to code page defined in C<import_xml>.
+Convert string from XML UTF-8 encoding to code page defined in C<xml_file>.
my $text = $n->_x('utf8 text');
ok(my $n = new WebPAC::Normalize::XML( debug => 1 ), "new");
-
throws_ok { $n->open() } qr/tag/, "open without tag";
throws_ok { $n->open( tag => 'isis' ) } qr/xml_file/, "open without xml_file";
throws_ok { $n->open( tag => 'isis', xml_file => 'foo' ) } qr/file.*doesn't exist/, "open with invalid xml_file";