README
1NAME
2
3 XML::Encoding - A perl module for parsing XML encoding maps.
4
5SYNOPSIS
6
7 use XML::Encoding;
8 my $em_parser = new XML::Encoding(ErrorContext => 2,
9 ExpatRequired => 1,
10 PushPrefixFcn => \&push_prefix,
11 PopPrefixFcn => \&pop_prefix,
12 RangeSetFcn => \&range_set);
13
14 my $encmap_name = $em_parser->parsefile($ARGV[0]);
15
16DESCRIPTION
17
18 This module, which is built as a subclass of XML::Parser, provides a parser
19 for encoding map files, which are XML files. The file maps/encmap.dtd in the
20 distribution describes the structure of these files. Calling a parse method
21 returns the name of the encoding map (obtained from the name attribute of
22 the root element). The contents of the map are processed through the
23 callback functions push_prefix, pop_prefix, and range_set.
24
25INSTALLATION
26
27 See the INSTALL file.
28
29COPYRIGHT
30
31 Copyright (C) 1998 Clark Cooper. All rights reserved.
32 Copyright (C) 2007-2010, 2014, 2020 Steve Hay. All rights reserved.
33
34LICENCE
35
36 This distribution is free software; you can redistribute it and/or modify it
37 under the same terms as Perl itself, i.e. under the terms of either the GNU
38 General Public License or the Artistic License, as specified in the LICENCE
39 file.
40