YAX::Text - a DOM text node
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";
Text nodes for a YAX DOM tree.
Returns the value of YAX::Constants::TEXT_NODE
Returns the string '#text'.
Returns the text data associated with this node. If called with a parameter, then sets the data to $new_val.
$new_val
Returns the next sibling if any.
Returns the previous sibling if any.
Returns the parent node if any.
Returns a copy of this node
Serialization hook, but does the same as $text->data(). '"" is overloaded.
YAX:Node, YAX::Element, YAX::Fragment, YAX::Constants
Richard Hundt
This program is free software and may be modified and distributed under the same terms as Perl itself.
To install YAX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm YAX
CPAN shell
perl -MCPAN -e shell install YAX
For more information on module installation, please visit the detailed CPAN module installation guide.