NAME
XML::DTD::Entity - Perl module representing an entity declaration in a DTD
SYNOPSIS
use XML::DTD::Entity;
my $ent = XML::DTD::Entity->new('<!ENTITY a "b">');
DESCRIPTION
XML::DTD::Entity is a Perl module representing an entity declaration in a DTD. The following methods are provided.
- new
-
my $ent = XML::DTD::Entity->new('<!ENTITY a "b">');
Construct a new XML::DTD::Entity object.
- name
-
print $ent->name;
Return the entity name
- isparam
-
if ($ent->isparam) { ... }
Determine whether the object represents a parameter entity
- isextern
-
if ($ent->isextern) { ... }
Determine whether the object represents an external entity
- value
-
print $ent->value;
Return the entity value
- writexml
-
$xo = new XML::Output({'fh' => *STDOUT}); $ent->writexml($xo);
Write an XML representation of the entity.
SEE ALSO
AUTHOR
Brendt Wohlberg <wohl@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2004-2010 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.
ACKNOWLEDGMENTS
Peter Lamb <Peter.Lamb@csiro.au> added fetching of external entities and improved entity substitution.