XML::DTD::EntityManager - Perl module for managing entity declarations in a DTD
use XML::DTD::EntityManager; my $em = XML::DTD::EntityManager->new;
XML::DTD::EntityManager is a Perl module for managing entity declarations in a DTD. The following methods are provided.
my $em = XML::DTD::EntityManager->new;
Construct a new XML::DTD::EntityManager object.
if (XML::DTD::EntityManager->isa($obj) { ... }
Test object type.
my $ent = XML::DTD::Entity->new('<!ENTITY a "b">'); $em->insert($ent);
Insert an entity declaration.
my $ent = XML::DTD::Entity->new('<!ENTITY % a "b">'); $em->insertpe($ent);
Insert a parameter entity declaration.
my $val = $em->pevalue('%a;');
Lookup a parameter entity value.
my $ent = XML::DTD::Entity->new('<!ENTITY a "b">'); $em->insertge($ent);
Insert a general entity declaration.
my $val = $em->pevalue('&a;');
Lookup a general entity value.
my $txt = $em->entitysubst('abc &a; def');
Perform entity substitution in text.
XML::DTD, XML::DTD::Entity
Brendt Wohlberg <wohl@cpan.org>
Copyright (C) 2004-2006 by Brendt Wohlberg
This library is available under the terms of the GNU General Public License (GPL), described in the GPL file included in this distribution.
To install XML::DTD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::DTD
CPAN shell
perl -MCPAN -e shell install XML::DTD
For more information on module installation, please visit the detailed CPAN module installation guide.