package XML::Elemental::Characters; use strict; use base qw( XML::Elemental::Node ); __PACKAGE__->mk_accessors(qw( data parent )); 1; __END__ =begin =head1 NAME XML::Elemental::Characters - a generic characters object. =head1 DESCRIPTION XML::Elemental::Characters is a subclass of L that is used by the Elemental parser to represent character data. =head1 METHODS =item XML::Elemental::Characters->new Parameterless constructor. Returns an instance of the object. =item $chars->parent([$object]) Returns a reference to the parent object. If a parameter is passed the parent is set. =item $chars->data([$string]) A method that returns the character data as a string. If a parameter is passed the value is set. =item $chars->root A method that returns a reference to the Elemental Document object. =head1 AUTHOR & COPYRIGHT Please see the XML::Elemental manpage for author, copyright, and license information. =cut =end