NAME
YAX::Text - a DOM text node
SYNOPSIS
use YAX::Text;
 
# construct
my $text = YAX::Text->new( $string );
 
# access the parent
my $prnt = $text->parent;
 
# access siblings
my $next = $text->next;
my $prev = $text->prev;
 
# acccess the value
my $data = $text->data;
$text->data( $new_val );
 
# cloning
my $copy = $text->clone();
 
# misc
my $name = $text->name;    # '#text'
my $type = $text->type;    # YAX::Constants::TEXT_NODE
 
# stringify
my $xstr = $elmt->as_string;
my $xstr = "$elmt";
DESCRIPTION
Text nodes for a YAX DOM tree.
METHODS
- type
 - 
Returns the value of YAX::Constants::TEXT_NODE
 - name
 - 
Returns the string '#text'.
 - data =item data( $new_val )
 - 
Returns the text data associated with this node. If called with a parameter, then sets the data to
$new_val. - next
 - 
Returns the next sibling if any.
 - prev
 - 
Returns the previous sibling if any.
 - parent
 - 
Returns the parent node if any.
 - clone
 - 
Returns a copy of this node
 - as_string
 - 
Serialization hook, but does the same as $text->data(). '"" is overloaded.
 
SEE ALSO
YAX:Node, YAX::Element, YAX::Fragment, YAX::Constants
AUTHOR
Richard Hundt
LICENSE
This program is free software and may be modified and distributed under the same terms as Perl itself.