SGML::Entity - an entity defined in an SGML or XML document
$name = $entity->name; $data = $entity->data; $entity->iter; $entity->accept($visitor, ...); The following are defined for type compatibilty: $entity->as_string([$context, ...]); $entity->accept_gi($visitor, ...); $entity->children_accept($visitor, ...); $entity->children_accept_gi($visitor, ...);
An SGML::Entity contains an entity defined in a document instance. Within a grove, any entity with the same name refers to the same SGML::Entity object.
SGML::Entity
SGML::Entity objects occur in a value of an element attribute or as children of entities.
$entity->name returns the name of the Entity object.
$entity->name
$entity->data returns the data of the Entity object.
$entity->data
$entity->accept($visitor[, ...]) issues a call back to $visitor->visit_SGML_Entity($entity[, ...]). See examples visitor.pl and simple-dump.pl for more information.
$entity->accept($visitor[, ...])
$visitor->visit_SGML_Entity($entity[, ...])
visitor.pl
simple-dump.pl
$entity->as_string returns an empty string.
$entity->as_string
$entity->accept_gi($visitor[, ...]) is implemented as a synonym for accept.
$entity->accept_gi($visitor[, ...])
accept
children_accept and children_accept_gi do nothing.
children_accept
children_accept_gi
Ken MacLeod, ken@bitsko.slc.ut.us
perl(1), SGML::Grove(3), Text::EntityMap(3), SGML::Element(3), SGML::PI(3).
To install SGML::Grove, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SGML::Grove
CPAN shell
perl -MCPAN -e shell install SGML::Grove
For more information on module installation, please visit the detailed CPAN module installation guide.