XML::DTD::Entity - Perl module representing an entity declaration in a DTD


XML-DTD documentation  | view source Contained in the XML-DTD distribution.

Index


NAME

Top

XML::DTD::Entity - Perl module representing an entity declaration in a DTD

SYNOPSIS

Top

  use XML::DTD::Entity;

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

DESCRIPTION

Top

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

Top

XML::DTD, XML::DTD::Component

AUTHOR

Top

Brendt Wohlberg <wohl@cpan.org>

COPYRIGHT AND LICENSE

Top

ACKNOWLEDGMENTS

Top

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.