The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

XML::DTD::EntityManager - Perl module for managing entity declarations in a DTD

SYNOPSIS

  use XML::DTD::EntityManager;

  my $em = XML::DTD::EntityManager->new;

DESCRIPTION

XML::DTD::EntityManager is a Perl module for managing entity declarations in a DTD. The following methods are provided.

new
 my $em = XML::DTD::EntityManager->new;

Construct a new XML::DTD::EntityManager object.

isa
 if (XML::DTD::EntityManager->isa($obj) {
 ...
 }

Test object type.

insert
 my $ent = XML::DTD::Entity->new('<!ENTITY a "b">');
 $em->insert($ent);

Insert an entity declaration.

insertpe
 my $ent = XML::DTD::Entity->new('<!ENTITY % a "b">');
 $em->insertpe($ent);

Insert a parameter entity declaration.

pevalue
 my $val = $em->pevalue('%a;');

Lookup a parameter entity value.

insertge
 my $ent = XML::DTD::Entity->new('<!ENTITY a "b">');
 $em->insertge($ent);

Insert a general entity declaration.

gevalue
 my $val = $em->pevalue('&a;');

Lookup a general entity value.

entitysubst
 my $txt = $em->entitysubst('abc &a; def');

Perform entity substitution in text.

SEE ALSO

XML::DTD, XML::DTD::Entity

AUTHOR

Brendt Wohlberg <wohl@cpan.org>

COPYRIGHT AND LICENSE

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.