| XML-DTD documentation | view source | Contained in the XML-DTD distribution. |
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.
Brendt Wohlberg <wohl@cpan.org>
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.
Peter Lamb <Peter.Lamb@csiro.au> added fetching of external entities and improved entity substitution.
| XML-DTD documentation | view source | Contained in the XML-DTD distribution. |