XML::DTD::Entity - Perl module representing an entity declaration in a DTD
use XML::DTD::Entity; my $ent = XML::DTD::Entity->new('<!ENTITY a "b">');
XML::DTD::Entity is a Perl module representing an entity declaration in a DTD. The following methods are provided.
my $ent = XML::DTD::Entity->new('<!ENTITY a "b">');
Construct a new XML::DTD::Entity object.
print $ent->name;
Return the entity name
if ($ent->isparam) { ... }
Determine whether the object represents a parameter entity
if ($ent->isextern) { ... }
Determine whether the object represents an external entity
print $ent->value;
Return the entity value
$xo = new XML::Output({'fh' => *STDOUT}); $ent->writexml($xo);
Write an XML representation of the entity.
XML::DTD, XML::DTD::Component
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.